Share » Forums » Developer » Issues with view caching

Issues with view caching

Issues with view caching

Thursday 17 September 2009 12:22:49 am - 3 replies

Author Message

Marcel Marnet

Thursday 17 September 2009 12:51:26 am

Hello Julien,

if you publish an object, just the cache of itself and the cache of the parent-object will be cleared. At other nodes, you will see the older content.
Have a look at the viewcache.ini in the settings directory, there you're able to set which cache eZ should clear, when you publish an object.

with best regards,

Marcel

Xavier Serna

Thursday 17 September 2009 1:41:49 am

Hi Julien,

If you are outside the $module_result.conent and are seeing obsolete content, probably you're doing these fetch's inside a cache-block. As Marcel says, you have to check viewcache settings to be sure all needed caches are cleared, but also, you have to be sure that there is not a cache block generated that is caching your obsolete content.

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

André R.

Thursday 17 September 2009 1:47:02 am

As in: your not supposed to have a cache-block around $module_result.content, it will break your site, and $module_result.content is cached by view cache anyway.

But you say outside of $module_result.content, are your talking about when you fetch the node directly somewhere? Where and how do you do that?
In another nodes template? Or inside cache block of pagelayout?

If first case, then you should use relations instead to be able to take advantage of the view cache clearing rules of viewcache.ini.

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

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

36 542 Users on board!

Forums menu