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.

eZ debug

Timing: Jan 31 2025 06:27:37
Script start
Timing: Jan 31 2025 06:27:37
Module start 'layout'
Timing: Jan 31 2025 06:27:37
Module start 'content'
Timing: Jan 31 2025 06:27:37
Module end 'content'
Timing: Jan 31 2025 06:27:37
Script end

Main resources:

Total runtime0.0135 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1406151.2109
Module start 'layout' 0.00480.0024 739.351636.6641
Module start 'content' 0.00720.0048 776.015690.1563
Module end 'content' 0.01200.0015 866.171929.9922
Script end 0.0135  896.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.6995140.0002
Check MTime0.00107.7583140.0001
Mysql Total
Database connection0.00074.992710.0007
Mysqli_queries0.002115.811630.0007
Looping result0.00000.081210.0000
Template Total0.00118.010.0011
Template load0.00085.813910.0008
Template processing0.00032.186410.0003
Override
Cache load0.00053.947210.0005
General
dbfile0.00032.036380.0000
String conversion0.00000.058340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs