How to disable ViewCache for some class object ?

Author Message

Martynas Bilevičius

Saturday 10 May 2008 4:40:09 am

Hi,

I have created some object of my own created class and enabled ViewCache. But what i want that, my object should never be cached only compiled. Maybe thereare some ini settings where i can tell do not cache some class of objects ?

André R.

Sunday 11 May 2008 6:03:36 am

Put this in the first line of your full node view template for that class:

{set-block scope=global variable=cache_ttl}0{/set-block}

The number is cache time to live(ttl) in miliseconds for view cache (view as in module view, aka the module_result.content thing you see in your pagelayout).

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

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 20 2025 17:25:22
Script start
Timing: Jan 20 2025 17:25:22
Module start 'layout'
Timing: Jan 20 2025 17:25:22
Module start 'content'
Timing: Jan 20 2025 17:25:23
Module end 'content'
Timing: Jan 20 2025 17:25:23
Script end

Main resources:

Total runtime1.2017 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.0057 588.0469151.2266
Module start 'layout' 0.00570.0029 739.273436.6797
Module start 'content' 0.00871.1923 775.9531546.5156
Module end 'content' 1.20100.0007 1,322.46887.9688
Script end 1.2017  1,330.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2670160.0002
Check MTime0.00130.1062160.0001
Mysql Total
Database connection0.00090.074810.0009
Mysqli_queries1.163596.8184540.0215
Looping result0.00050.0419520.0000
Template Total1.170297.420.5851
Template load0.00200.170120.0010
Template processing1.168297.208020.5841
Template load and register function0.00010.011610.0001
states
state_id_array0.00100.080910.0010
state_identifier_array0.00070.060920.0004
Override
Cache load0.00170.1398100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.047820.0003
Fetch class attribute name0.00130.110230.0004
XML
Image XML parsing0.00060.049620.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00090.0750170.0001
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs