Hmm.. I wonder; what is cachetreshold?

Author Message

Valentin Svelland

Thursday 09 October 2003 7:16:48 am

My site.ini of eZ v.3.2 has this parameter:

# The threshold for file cleanup, if it is exceeded a global expiry is used instead
# The value is calculated with the number of affected nodes * viewmodes * translations * sitedesign
CacheThreshold=120

I've read the comments but I can't quite see the logic.. What happens if I increase the value to 200 for example? Maybe a silly question, but I am a silly man... :)

(I'm really searching for a way to speed up my site. The caching works fine, but it seems like it's cache is renewed to often. This makes the site appear slow to my very few visitors.)

Jan Borsodi

Thursday 16 October 2003 1:36:38 am

It is used to determine if the view cache files should be cleared immediately or if it ALL view caches should be expired.

The reason for this is if you have a large tree and change one of the top level items then the view cache for all the items must be clear. However if the number of subitems is large it would take a long time before all of them is cleared.

To remedy this we calculate a cache value, we multiply the number of subitems by the number viewmodes by the number of translations by the number of sitedesigns. If this number is larger then the threshold we only do the simple expiration.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.