Forums / General / How to disable cache for a specific template

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

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 Exponential 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\Exponential\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