clearing unused cache blocks periodically

Author Message

Marko Žmak

Monday 09 October 2006 7:02:09 am

Is there a way to clear only thoose cache blocks that haven't been used (accessed) for a certain amount of time (let's say for two days)?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marco Zinn

Monday 09 October 2006 12:54:28 pm

Good idea.
I suggest adding this to one cleanup script or the other and making it available to the cronjobs. ;) ez, what do you think? ;)

Marco
http://www.hyperroad-design.com

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 18 2025 16:03:57
Script start
Timing: Jan 18 2025 16:03:57
Module start 'layout'
Timing: Jan 18 2025 16:03:57
Module start 'content'
Timing: Jan 18 2025 16:03:58
Module end 'content'
Timing: Jan 18 2025 16:03:58
Script end

Main resources:

Total runtime0.6043 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469152.6406
Module start 'layout' 0.00580.0028 740.687539.4766
Module start 'content' 0.00860.5948 780.1641533.2656
Module end 'content' 0.60340.0009 1,313.42978.2813
Script end 0.6043  1,321.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5988160.0002
Check MTime0.00160.2719160.0001
Mysql Total
Database connection0.00080.131110.0008
Mysqli_queries0.561392.8863540.0104
Looping result0.00060.1042520.0000
Template Total0.576595.420.2883
Template load0.00230.378120.0011
Template processing0.574295.020420.2871
Template load and register function0.00010.016710.0001
states
state_id_array0.00100.160210.0010
state_identifier_array0.00110.180220.0005
Override
Cache load0.00180.295690.0002
Sytem overhead
Fetch class attribute can translate value0.00060.098120.0003
Fetch class attribute name0.00130.222440.0003
XML
Image XML parsing0.00110.175920.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1517240.0000
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs