How to disabled template cache by settings file

Author Message

bruce luo

Monday 12 July 2010 9:06:39 pm

I want to disabled template cache,so I do these things.

1, in the file "\settings\site.ini ", I set "TemplateCache=disabled"

2. in the file "settings\siteaccess\plain_site_admin\site.ini.append.php" , I add

"[TemplateSettings]

TemplateCache=disabled"

3.clear all the cache by admin intenface

but it doesn't work,when I change the template file,It is stilling display the cache.

how to solve the problem? thanks

Ivo Lukac

Tuesday 13 July 2010 1:19:08 am

Changing settings/site.ini is not recommended.

If you want to disable template cache on your site you need to do that in your outer siteaccess (not in admin siteacces):
settings/siteaccess/plain_site/site.ini append.php

And clear ini cache

Cheers

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Bertrand Dunogier

Tuesday 13 July 2010 2:25:01 am

May I ask why you're disabling this ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Ivo Lukac

Tuesday 13 July 2010 3:20:57 am

Should be disabled for development mode only of course :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

Main resources:

Total runtime1.4499 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1563152.6406
Module start 'layout' 0.00630.0038 741.796939.4766
Module start 'content' 0.01011.4382 781.2734596.2500
Module end 'content' 1.44830.0016 1,377.523412.1250
Script end 1.4499  1,389.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2541160.0002
Check MTime0.00170.1152160.0001
Mysql Total
Database connection0.00100.068710.0010
Mysqli_queries1.056972.8905620.0170
Looping result0.00060.0411600.0000
Template Total1.097675.720.5488
Template load0.00240.162420.0012
Template processing1.095375.538320.5476
Template load and register function0.00020.014810.0002
states
state_id_array0.00130.093010.0013
state_identifier_array0.00130.091520.0007
Override
Cache load0.00200.1363290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.039430.0002
Fetch class attribute name0.00140.097360.0002
XML
Image XML parsing0.00130.086830.0004
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00110.0742230.0000
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs