Forums / Setup & design / Static cache filled for pages that are not in CachedURLArray

Static cache filled for pages that are not in CachedURLArray

Author Message

Fred van Engen

Wednesday 12 April 2006 2:22:33 am

Using Exponential 3.7.3.

We've set up the Exponential forum and with static caching people would see the 'need to logon' message even if they're logged in. So we removed /forums* from CachedURLArray in the override settings (there are no _siteaccess_ settings for the static cache because that doesn't seem to work anyway).

The problem is that Exponential still generates /forums pages in the static cache.

[CacheSettings]
HostName=...removed...
CachedURLArray[]
CachedURLArray[]=/
CachedURLArray[]=/nieuws*
CachedURLArray[]=/multimedia*
AlwaysUpdateArray[]
CachedSiteAccesses[]
CachedSiteAccesses[]=nl
CachedSiteAccesses[]=en
MaxCacheDepth=5

I worked around this by adding a mod_rewrite rule that ignores /forums in the static cache so functionally it works now. However I would like to prevent the cache to be filled for forum pages because it slows down posting.

Looking at the sources and some debugging output, it seems that eZContentCacheManager::clearObjectViewCache is correctly called to invalidate object cache entries. This in turn calls eZStaticCache::generateNodeListCache but the latter doesn't check against CachedURLArray before writing to the static cache.

Is this a bug or some configuration error? Any hints?