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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 00:02:00
Script start
Timing: Jan 18 2025 00:02:00
Module start 'layout'
Timing: Jan 18 2025 00:02:00
Module start 'content'
Timing: Jan 18 2025 00:02:01
Module end 'content'
Timing: Jan 18 2025 00:02:01
Script end

Main resources:

Total runtime0.6069 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 589.2813152.6563
Module start 'layout' 0.00860.0030 741.937539.5156
Module start 'content' 0.01160.5937 781.4531549.4531
Module end 'content' 0.60530.0016 1,330.906312.0938
Script end 0.6069  1,343.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5419160.0002
Check MTime0.00130.2173160.0001
Mysql Total
Database connection0.00180.299910.0018
Mysqli_queries0.545789.9139570.0096
Looping result0.00060.0997550.0000
Template Total0.574994.720.2874
Template load0.00200.329420.0010
Template processing0.572894.388820.2864
Template load and register function0.00020.027310.0002
states
state_id_array0.00030.047310.0003
state_identifier_array0.00150.245020.0007
Override
Cache load0.00170.2801300.0001
Sytem overhead
Fetch class attribute can translate value0.00130.212420.0006
Fetch class attribute name0.00160.255950.0003
XML
Image XML parsing0.00260.433220.0013
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00240.3880240.0001
String conversion0.00000.003540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs