How to disable cache during development period

Author Message

Fabien Scantamburlo

Wednesday 19 March 2008 6:50:20 am

Hi all,

I'm starting to develop templates. the site is a development mode (not production mode).
As all requests are sent by myself and i need to preview pages quickly, i just want to disable template cache (all cache or template only).

Can i do this ?

Thanks.

Greg McAvoy-Jensen

Wednesday 19 March 2008 7:22:38 am

Fabien,

In settings/siteaccess/your_siteaccess/site.ini.append.php. . .

[TemplateSettings]
TemplateCache=disabled

[ContentSettings]
ViewCaching=disabled

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

André R.

Wednesday 19 March 2008 8:30:28 am

My development settings:

[ContentSettings]
ViewCaching=disabled


[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
Debug=disabled
ShowXHTMLCode=disabled
ShowUsedTemplates=enabled
TemplateCompile=enabled
TemplateCache=disabled
DevelopmentMode=enabled

Note: Don't forget to test your cache blocks (template cache) before you go live :)
Note2: If you have a fast computer and/or want stricter (more) debug output on template errors, tun off TemplateCompile!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Fabien Scantamburlo

Wednesday 19 March 2008 10:26:42 am

Thanks a lot, André. That's good !

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

Main resources:

Total runtime1.1929 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.0052 589.2813152.6563
Module start 'layout' 0.00520.0029 741.937539.5078
Module start 'content' 0.00811.1831 781.4453605.5313
Module end 'content' 1.19120.0016 1,386.976612.1094
Script end 1.1927  1,399.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2534160.0002
Check MTime0.00120.1024160.0001
Mysql Total
Database connection0.00080.065010.0008
Mysqli_queries1.102492.4066620.0178
Looping result0.00070.0581600.0000
Template Total1.155996.920.5779
Template load0.00220.183920.0011
Template processing1.153696.705520.5768
Template load and register function0.00050.045810.0005
states
state_id_array0.00080.067210.0008
state_identifier_array0.00390.324620.0019
Override
Cache load0.00180.1545260.0001
Sytem overhead
Fetch class attribute can translate value0.00070.058030.0002
Fetch class attribute name0.00210.180070.0003
XML
Image XML parsing0.02311.940230.0077
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.02512.1028310.0008
String conversion0.00000.000540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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.0002 secs