How to hardcode no "Time based expiration" ?

Author Message

Nico Sabbi

Tuesday 02 September 2008 8:53:44 am

Hi
this page http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/miscellaneous/cache_block
states that the attribute expiry is hardcoded to 2 hours and can't be configured.
Well, I don't want my cache blocks to expire, so is there a way where I can set a huge
default value?
Thanks.

André R.

Tuesday 02 September 2008 9:34:19 am

set the value to 0 in the template.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Ivo Lukac

Tuesday 02 September 2008 9:37:33 am

Hi Nico,

No, it states that default value is hardcoded. It also states that value of zero will produce a cache block that will never expire.

So you do it like this:

{cache-block ignore_content_expiry expiry=0}
    {* something which never expiries*}
{/cache-block}
 

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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 22:20:51
Script start
Timing: Jan 18 2025 22:20:51
Module start 'layout'
Timing: Jan 18 2025 22:20:51
Module start 'content'
Timing: Jan 18 2025 22:20:52
Module end 'content'
Timing: Jan 18 2025 22:20:52
Script end

Main resources:

Total runtime1.2967 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2031152.6406
Module start 'layout' 0.00630.0042 741.843839.4766
Module start 'content' 0.01061.2848 781.3203577.6797
Module end 'content' 1.29540.0012 1,359.000012.1250
Script end 1.2966  1,371.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2566160.0002
Check MTime0.00140.1065160.0001
Mysql Total
Database connection0.00070.053810.0007
Mysqli_queries1.240995.6999590.0210
Looping result0.00070.0509570.0000
Template Total1.259497.120.6297
Template load0.00200.152820.0010
Template processing1.257496.967720.6287
Template load and register function0.00020.014510.0002
states
state_id_array0.00110.082710.0011
state_identifier_array0.00120.095220.0006
Override
Cache load0.00160.1262180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.046630.0002
Fetch class attribute name0.00190.146450.0004
XML
Image XML parsing0.00120.094230.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00090.0677240.0000
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs