How to disable view caching from fetch function (PHP code)?

Author Message

Andrey Astakhov

Wednesday 27 May 2009 8:36:26 am

I need to do disable view caching for some pages.
I know how to do it in a template, but It is preferably to do it in PHP code of my fetch function. Any idea?

André R.

Wednesday 27 May 2009 9:26:08 am

Should be:

$tpl->setVariable('cache_ttl', 0 )

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

Andrey Astakhov

Monday 01 June 2009 2:46:17 am

Thank you. It works.

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