Forums / Developer / Ez Find & Search.tpl cache problem
Jérémie Caulier
Thursday 21 April 2011 2:34:36 am
Hi,
I created new extension and i overrided ez find default search.tpl into myextension/mydesign/myextension/templates/content/seach.tpl.
When I try to perform search I have always the same result, result seems to be cached.
I tried to place this code into the header of search.tpl template :
{set-block scope=root variable=cache_ttl}0{/set-block}
but there is no effect, the search result is always the first research.
Do you have any idea where the problem might come from ?
Peter Keung
Thursday 21 April 2011 8:49:35 am
Check to see whether in your pagelayout.tpl, {$module_result.content} is within a cache block. This problem is not noticeable on node views since you're used to page being cached by the viewcache. {$module_result.content} should always be outside of cache blocks.
http://www.mugo.ca Mugo Web, eZ Partner in Vancouver, Canada
Tuesday 26 April 2011 2:19:45 am
All seems to be ok.
I had a cache block into my page layout file.
Thnx