ViewCaching and TemlpateCache

Author Message

Christian Johansen

Thursday 27 April 2006 4:31:12 am

Where do I set the expiry for ViewCaching and TemlpateCache? It seems my frontpage will never update, even when it is 40 hours since I published an article... I am not using static cache on the page.

Stuart Fenton

Monday 01 May 2006 1:29:52 pm

You can set the expiry in the same line as you use the cache block.

Example (expire after 120s):

{cache-block expiry=120}
    ... tpl code
{/cache-block}

Have a look at:
http://ez.no/products/ez_publish/documentation/development/kernel/cache_block_optimization

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Christian Johansen

Tuesday 09 May 2006 4:07:09 am

Ok, so do you mean that I should wrap a cache-block around my {$module_result.content} in pagelayout.tpl?

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

Main resources:

Total runtime0.8065 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 587.9141152.6250
Module start 'layout' 0.00860.0029 740.539139.4453
Module start 'content' 0.01150.7936 779.9844529.8750
Module end 'content' 0.80510.0014 1,309.85948.1641
Script end 0.8065  1,318.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4333160.0002
Check MTime0.00130.1670160.0001
Mysql Total
Database connection0.00110.142210.0011
Mysqli_queries0.757893.9615570.0133
Looping result0.00050.0676550.0000
Template Total0.767595.220.3838
Template load0.00210.262520.0011
Template processing0.765494.904220.3827
Template load and register function0.00020.019610.0002
states
state_id_array0.00130.163210.0013
state_identifier_array0.00110.142620.0006
Override
Cache load0.00170.2118150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.094120.0004
Fetch class attribute name0.00120.146440.0003
XML
Image XML parsing0.00340.420520.0017
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00450.5603160.0003
String conversion0.00000.001040.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/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs