disable cache doesn't work

disable cache doesn't work

Tuesday 12 April 2011 7:56:39 am - 3 replies

Author Message

Quoc Huy Nguyen Dinh

Wednesday 13 April 2011 8:46:27 am

From your Source=node/view/line.tpl I guess you are using {node_view_gui...} to load the line.tpl file inside a full view tpl file (override/template/full/myclass.tpl for example). In that case {set-block scope=root variable=cache_ttl}0{/set-block} won't work as the output of line.tpl is cached inside the cache of {myclass.tpl}

Add it to the calling tpl file as well, or use Ajax (jquery/yui) to fetch the numbers and still benefit of the view caching.

Emmanuel Averty

Thursday 14 April 2011 12:01:38 am

Thank you for your reply. You're right, I use node_view_gui. In fact, the calling template is the ezwebin basic folder template. I think I'll overwrite this template for this node in order to add {set-block scope=root variable=cache_ttl}0{/set-block}.

But, I don't understand what you mean about the Ajax method. Do you mean I can access eZ Publish objects through javascript ?

Emmanuel Averty

Monday 18 April 2011 3:20:55 am

I understood how to make an ajax fetching. Thank you for the idea.

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

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