Cache Problem

Author Message

John Smith

Thursday 06 November 2008 1:55:46 am

Hi,

Yesterday I wrote the following code with is overriding the full folder template.

{let 
parent=fetch('content','node',hash('node_id',$node.path_array.3))
grandparent=fetch('content','node',hash('node_id',$node.path_array.4)) }
{let children=fetch( content, list, hash( parent_node_id, $node.path_array.4, class_filter_type,  include, class_filter_array, array( 'folder', 'article' ), sort_by, $grandparent.sort_array ) )}

-----
-----
-------

But the problem is when I am changing the prioities of the items in the folder, I am not getting the same result untill I clear the cache. This is quite annoying.

I fixed it by writting the follwoing line before the code.

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

Is this is right solution?

Ɓukasz Serwatka

Thursday 06 November 2008 11:47:00 am

Hi,

View cache is cleared on set priority action for current content object. Make sure that RelatedSiteAccessList contains correct siteaccesses. If you set it in the admin interface siteaccess then public siteaccess should be on that list to. Disabling view cache in general is bad idea. If you still can't make it work set cache expiry time to e.g 3 or 5 min.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:12:45
Script start
Timing: Jan 18 2025 22:12:45
Module start 'layout'
Timing: Jan 18 2025 22:12:45
Module start 'content'
Timing: Jan 18 2025 22:12:46
Module end 'content'
Timing: Jan 18 2025 22:12:46
Script end

Main resources:

Total runtime0.6312 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.9141152.6094
Module start 'layout' 0.00600.0029 741.523439.3984
Module start 'content' 0.00880.6210 780.9219527.0469
Module end 'content' 0.62980.0014 1,307.96888.2031
Script end 0.6312  1,316.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5935160.0002
Check MTime0.00140.2295160.0001
Mysql Total
Database connection0.00070.115410.0007
Mysqli_queries0.586692.9266540.0109
Looping result0.00050.0815520.0000
Template Total0.605495.920.3027
Template load0.00200.317020.0010
Template processing0.603495.590420.3017
Template load and register function0.00020.036410.0002
states
state_id_array0.00070.106410.0007
state_identifier_array0.00060.100020.0003
Override
Cache load0.00160.2574140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.105720.0003
Fetch class attribute name0.00160.246230.0005
XML
Image XML parsing0.00080.132620.0004
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.1448180.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs