Disable cache for some sections

Author Message

Philip K.

Monday 22 October 2007 3:26:21 am

Hello.

Is it possible to disable cache for only some section?

Cache has to be enabled for the whole website. But in some sections I don't want the cache to be used.

Thanks for your help,
Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Mark Marsiglio

Monday 22 October 2007 6:17:48 am

You can selectively enable cache blocks in your templates by section. Wrap the cache block code in a switch that is based on section

{$DesignKeys:used.section}

can be used for this to identify the section.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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 01:13:15
Script start
Timing: Jan 19 2025 01:13:15
Module start 'layout'
Timing: Jan 19 2025 01:13:15
Module start 'content'
Timing: Jan 19 2025 01:13:16
Module end 'content'
Timing: Jan 19 2025 01:13:16
Script end

Main resources:

Total runtime0.6264 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.0049 589.1484152.6250
Module start 'layout' 0.00490.0026 741.773439.4453
Module start 'content' 0.00750.6168 781.2188527.9063
Module end 'content' 0.62440.0020 1,309.12508.1641
Script end 0.6264  1,317.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5701160.0002
Check MTime0.00150.2342160.0001
Mysql Total
Database connection0.00070.110510.0007
Mysqli_queries0.582793.0194540.0108
Looping result0.00070.1090520.0000
Template Total0.593894.820.2969
Template load0.00240.390320.0012
Template processing0.591394.397020.2957
Template load and register function0.00010.014810.0001
states
state_id_array0.00110.179310.0011
state_identifier_array0.00170.268420.0008
Override
Cache load0.00200.3178140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.113520.0004
Fetch class attribute name0.00120.188740.0003
XML
Image XML parsing0.00080.125620.0004
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00110.1821210.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs