How to disable cache for a specific template

Author Message

John Mangadan

Monday 29 November 2010 6:24:03 am

Hi,

I am experiencing problem with a particular template being cached. The template actually exists inside an extension.In siste.ini we enabled the template caching. Is there any way to disable caching for this particular template?

Thanks,

John

Heath

Monday 29 November 2010 11:05:37 pm

Hello John,

Try adding this to templates you wish to remain uncached.

{set-block scope=root variable=cache_ttl}0{/set-block}

I hope this helps.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

John Mangadan

Tuesday 30 November 2010 1:43:04 am

"

Hello John,

Try adding this to templates you wish to remain uncached.

{set-block scope=root variable=cache_ttl}0{/set-block}

I hope this helps.

Cheers,

Heath

"

I added this , but there is no change. It is still caching the template. Any idea?

Andy Caiger

Friday 10 December 2010 3:09:29 am

We have had the same problem since upgrading from eZ Publish 4.2 to 4.3. The above line was always there in the template, and it used to work before the upgrade.

Help!

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Sujit Sth

Tuesday 04 January 2011 9:09:25 pm

Disable cache

Follow the following instruction.

1. Go to your template file:
eg:
E:\xampp\htdocs\ezpublish\settings\siteaccess\your_site\site.ini.append.php

2. Place the following code:

[DebugSettings] DebugOutput=enabled DebugRedirection=disabled DebugToolbar=disabled DebugByIP=disabled DebugByUser=disabled  [TemplateSettings] TemplateCompile=disabled TemplateCache=disabled DevelopmentMode=disabled ShowUsedTemplates=enabled Debug=disabled ShowXHTMLCode=disabled  [ContentSettings] ViewCaching=disabled  [DatabaseSettings] SQLOutput=disabled 

Go and enjoy the code !!!!!!

For detail follow the link below:

http://blog.developeronhire.com/tag/disble-cache/

Regards,

Sujeet

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.