eZ Community » Blogs » HUCK Florent » Common Mistake about viewcaching

By

HUCK Florent

Common Mistake about viewcaching

Thursday 05 July 2012 10:51:58 am

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

This is a common mistake about viewcaching and how eZ Publish trash the viewcache for siteaccess

Viewcache are used to cache the HTML result from $module_result.content in the pagelayout. eZ Publish manage viewcaches siteaccess by siteaccess and automatically trash viewcaches when objects are edited. By default, when editing an object, eZ Publish only trash the viewcache of the current object for the current siteaccess.
 
If you want to trash the viewcache of the current object on other siteaccess (commonly as editing object on the back and trash viewcache on the front), you'll have to linked them each other with the INI array in site.ini[SiteAccessSettings]RelatedSiteAccessList. eZ Publish look in this array to trash viewcache for all related siteaccess.

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/ContentSettings/ViewCaching/%28language%29/eng-GB

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Images/Features/View-caching/clear-viewcache-using-popup-menu/%28language%29/eng-GB

http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-3-of-3-practical-cache-and-template-solutions/%28from%29/ez.no