Jump to content

Pages: Custom Blocks Manual HTML Caching issue with Templates


Recommended Posts

Issue:

Custom Pages block, which use manual HTML and includes a template/s, will have a caching issue. The template embedded in the HTML is cached, but any edits made to the template are not updated. As a result, the content remains outdated even after clearing the system cache.

For example: (This is just an example)

If I create New Pages Block, and select 'Manual HTML' from Content Editor. Then from the Content tab, add the following code:

<div class="ipsBox ipsPadding">
  <div class="ipsPos_left">
    {template="includeLeftBox" app="core" group="global" location="front" params=""}
  </div>
  <div class="ipsPos_right">
    {template="includeRightBox" app="core" group="global" location="front" params=""}
  </div>
</div>

and then check 'Cache this Block'

Any edit/changes made to either the "includeLeftBox" or the "includeRightBox" templates, will remain outdated, even after clearing the cache from the support tool.

The only way to get the changes to show is to change the name of the templates and edit the code above to reflect the template name change.

If you need a live example of this happening, please let me know and I will give you access to my server.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...