Increase Cache Refresh Timeout

Author Message

Tony Stark

Thursday 24 September 2009 3:31:04 am

Is there a way to increase the time between non-manual cache flushes? it seems to be around 2 hours at present.

Thanks

Tony

Gaetano Giunta

Thursday 24 September 2009 4:57:07 am

If you are referring to cache-blocks, use the "expiry" parameter - see http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/miscellaneous/cache_block

If you are referring to other caches, there is no built-in 2 hours refresh...

Principal Consultant International Business
Member of the Community Project Board

Tony Stark

Thursday 24 September 2009 5:27:00 am

is this controllable globally via an ini?

Piotrek Karaƛ

Thursday 24 September 2009 11:36:13 am

Seems hardcoded:

const DEFAULT_TTL = 7200; // 2 hours = 60*60*2

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

Main resources:

Total runtime0.9025 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9141152.6250
Module start 'layout' 0.00510.0023 740.539139.4609
Module start 'content' 0.00740.8936 780.0000581.0078
Module end 'content' 0.90100.0014 1,361.007812.1641
Script end 0.9024  1,373.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3327160.0002
Check MTime0.00130.1441160.0001
Mysql Total
Database connection0.00090.094710.0009
Mysqli_queries0.857194.9787620.0138
Looping result0.00050.0605600.0000
Template Total0.873796.820.4368
Template load0.00210.235220.0011
Template processing0.871596.573320.4358
Template load and register function0.00030.032210.0003
states
state_id_array0.00100.114710.0010
state_identifier_array0.00080.089320.0004
Override
Cache load0.00180.1952160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.058530.0002
Fetch class attribute name0.00080.092860.0001
XML
Image XML parsing0.00110.126930.0004
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00120.1294230.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs