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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.