Forums / Install & configuration / How to disable cache during development period

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 !