Forums / Install & configuration / Unable to activate the viewcache (what have I forgot ?)

Unable to activate the viewcache (what have I forgot ?)

Author Message

Sébastien Antoniotti

Sunday 08 May 2011 1:16:20 am

Hi !

I have upgraded from 4.0.1 to 4.4, all is OK except the viewcaching that I'm unable to activate !

  • In the site.ini of my public siteaccess, I have [ContentSettings]ViewCaching=enabled, this is the only variable with the "*cach*" pattern.
  • In the site.ini of the override folder, I have no variable with the "*cach*" pattern.
  • In the settings/site.ini (that I have not modified) ViewCaching is enabled.
  • In the pagelayout.tpl, $module_result.content isn't into a cache-block

And the problem is that in a node view template (full by ex.) the content is never cached. Except if I manually insert place this directive at top :

{set-block scope=global variable=cache_ttl}0{/set-block}

And if I manually write cache-blocks... but this is not the solution...

Cheers,

Seb

eZ Publish Freelance
web : http://www.webaxis.fr

Quoc Huy Nguyen Dinh

Monday 09 May 2011 4:18:20 am

In the backend, go in Setup / INI settings / and select site.ini and your public site access to double check taht your ViewCaching is set to enabled.

Try to manually delete the cache folders:

  • var/cache
  • var/ez_flow_site/cache replace 'ez_flow_site' with what ever yours is

Sébastien Antoniotti

Monday 09 May 2011 5:27:32 am

Hi !

Result of the check for ViewCaching in backend : OK

I have deleted var/cache and var/myvardir/cache, and after a reload of the homepage, these two folders are well re-created by the CMS with some data cached into.

But my nodes templates are still uncached...

Thanks for helping !

eZ Publish Freelance
web : http://www.webaxis.fr