Template cache in eZ 4.0

Author Message

Carlos Revillo

Thursday 20 December 2007 3:51:03 am

Hi. I'm developing my first site with eZ 4.0 and php5. I've got some problems with override templates.

I have my pagelayout.tpl template under my design folder. i also have a template only for my homepage. this template is in mydesigsite/override/templates/home.tpl

i have disabled (or so i think) all caches for developing. If a change something in my pagelayout.tpl, i can see changes as expected. But i need to change something in my home.tpl template, i need to clear cache manually to see the changes... as i said, i have disbled all caches. also, in my settings/override/site.ini.append.php i have

[TemplateSettings]
TemplateCache=disabled

I enabled debug to show the list of used templates. when i reload my homepage i can only see

Usage count	Requested template	Template	Template loaded	Edit	Override
1	pagelayout.tpl	<No override>	design/es/templates/pagelayout.tpl	Edit template	Override template
1	setup/debug_toolbar.tpl	<No override>	design/standard/templates/setup/debug_toolbar.tpl	Edit template	Override template

If i manually clear the cache and then reload the home i can see

1	node/view/full.tpl	home.tpl	design/es/override/templates/home.tpl	Edit template	Override template
1	pagelayout.tpl	<No override>	design/es/templates/pagelayout.tpl	Edit template	Override template
1	setup/debug_toolbar.tpl	<No override>	design/standard/templates/setup/debug_toolbar.tpl

But only one time if i don't clear the cache...

Do i missing something? Thanks.

André R.

Thursday 20 December 2007 4:18:09 am

TemplateCache=disabled only disables cache-blocks, eZ Publish has serveral cache related settings and you should probably set these settings as well while developing:

[ContentSettings]
# Whether to use view caching or not
ViewCaching=disabled
[TemplateSettings]
TemplateCache=disabled
DevelopmentMode=enabled

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

Carlos Revillo

Thursday 20 December 2007 4:29:03 am

that worked. thank you

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