Forums / Developer / Cache cleared when adding content?

Cache cleared when adding content?

Author Message

Nicklas Lundgren

Friday 28 November 2003 1:32:50 am

Hi,
I have noticed that in 3.23 all of the view-cache is cleared when I add/delete something in the admin-interface, or add a simple message to a forum.

This is really slowing down the system a lot, since the cache has to be reloaded all the time.

I guess the problem is in kernel/content/edit.php where a block starting with
if ( $viewCacheEnabled )
seems to take care of clearing the viewcache when adding something to the system. However, it doesn´t seem right that all of the cached files are erased all the time...

All ideas/suggestions are welcome!

Kind regards,
Nicklas Lundgren

Claus Jensen

Friday 28 November 2003 4:32:37 am

Hi,
Is this true? I have just upgraded a site to the 3.2-3 and its up for being released to the public. This does not sound as the appropriate behaviour for a cache??!!! A cache is supposed to be caching content to be able to deliver content fast, not to reload content every time something new is added.

ezsystems, any comments on this matter?

I dont want to release a site and then its slow as a snail because its cache aint working...

regards,
claÜs

liu spider

Sunday 30 November 2003 10:40:50 am

I looked into these php files, and found out that eZ is smart enough to only delete cache files related with the affected node(s).

Imagine you add an new object with id 88 under the object with id 44, then eZ only delete cache files of these two objects, never delete the other cache files.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd