Forums / General / Remove cache for random article? / Comment59331
André R.
Friday 28 May 2010 1:27:06 am
No it turns of cache for the whole view*, cache_ttl only affects view cache as you have on content/view, it will not affect cach-blocks in the view or in your pagelayout.This is why setting it to for instance 30 or 60 seconds might be enough for you, as in do you really need a new item on every single page reload? If you do, consider preloading something like ten random items at a time and use javascript to select one of them on every single load, or load the whole block with ajax or something.
*view: the content ($module_result.content) on your page that is relevant to the url your on, excluding dynamic headers, menues, footer and anything else from your pagelayout.Only content/view/.. ur's are cached with view cache, hence the full name of the cache "Content view cache".
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