This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » General » How to disabled template cache by...
expandshrink

How to disabled template cache by settings file

How to disabled template cache by settings file

Tuesday 13 July 2010 6:06:39 am - 5 replies

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

Tuesday 13 July 2010 10: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

Tuesday 13 July 2010 11:25:01 am

May I ask why you're disabling this ?

Tuesday 13 July 2010 12:20:57 pm

Should be disabled for development mode only of course happy.gif Emoticon

Wednesday 30 May 2012 5:31:43 pm

Quote from Ivo Luka─Ź :

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

Hello,

I added in the file "settings\siteaccess\my_site\site.ini.append.php"

[TemplateSettings]

TemplateCache=disabled

but it doesn't work. I still have to clear the cache to see my template changes

Wednesday 30 May 2012 8:27:13 pm

Luca, to have new templates picked up as soon as you edit them, you need to set DevelopmentMode=enabled as well (always in the TemplateSettings block)

You shouls also check that in setting/override/site.ini.append.php those values are not changed, as the settings file in the override folder has higher priority than the ones in the siteaccess folders

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from