cache

Author Message

risto CMS user

Tuesday 14 March 2006 3:08:37 am

{cache-block expiry=130}
...
{/cache-block}

will this work on ez 3.4.1?

Betsy Gamrat

Tuesday 14 March 2006 6:39:17 am

You may also want to set the keys for the block to ensure the caching is properly preserved for each node.

{cache-block keys=array('template_name',$node.node_id)}

{/cache-block}

Also - you can cache pieces of the template, which is awesome. I have some templates that deliver real-time (date/time sensitive) content in addition to content that is valid for 24 hours.

If you find the wrong content is displayed, you may want to disable content-caching - in site.ini.append.php. I set them as overrides instead of siteaccess - this seemed to avoid problems with the 3.7.3 admin console.

[ContentSettings]
ViewCaching=disabled

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled

risto CMS user

Tuesday 14 March 2006 7:53:40 am

thanx lots of nice stuff.

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 19 2025 03:19:19
Script start
Timing: Jan 19 2025 03:19:19
Module start 'layout'
Timing: Jan 19 2025 03:19:19
Module start 'content'
Timing: Jan 19 2025 03:19:20
Module end 'content'
Timing: Jan 19 2025 03:19:20
Script end

Main resources:

Total runtime0.7082 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.0047 589.0313152.6094
Module start 'layout' 0.00470.0028 741.640639.4297
Module start 'content' 0.00750.6992 781.0703510.2031
Module end 'content' 0.70670.0015 1,291.273412.2031
Script end 0.7082  1,303.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4510160.0002
Check MTime0.00130.1902160.0001
Mysql Total
Database connection0.00080.108410.0008
Mysqli_queries0.661093.3350570.0116
Looping result0.00040.0632550.0000
Template Total0.683296.520.3416
Template load0.00180.249720.0009
Template processing0.681496.223420.3407
Template load and register function0.00010.015110.0001
states
state_id_array0.00070.104810.0007
state_identifier_array0.00070.104120.0004
Override
Cache load0.00150.2061210.0001
Sytem overhead
Fetch class attribute can translate value0.00070.092820.0003
Fetch class attribute name0.00110.154650.0002
XML
Image XML parsing0.00110.157720.0006
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00100.1422220.0000
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
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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs