No caching of random image

Author Message

Anders F

Tuesday 27 January 2004 3:11:03 pm

When caching is enabled (default settings) my randomised image isn't randomised anymore. I guess that's normal behaviour. Is there somehow I can override caching for a specific content or a template?

I tried {set-block name=random scope=root variable=cache_ttl}0{/set-block} at the top of the template, with no luck.

James Packham

Wednesday 28 January 2004 3:00:15 am

I believe you have to write an extension to 'shuffle' your images, look under community contributions someone may have left something there.

Regards,

~James~

Anders F

Wednesday 28 January 2004 4:26:27 am

Thanks for the reply, and thanks for the tip.

But, the random function (and it is in fact the shuffle contribution ;) ) works perfectly when caching is turned off.

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 15:07:11
Script start
Timing: Jan 18 2025 15:07:11
Module start 'layout'
Timing: Jan 18 2025 15:07:11
Module start 'content'
Timing: Jan 18 2025 15:07:12
Module end 'content'
Timing: Jan 18 2025 15:07:12
Script end

Main resources:

Total runtime1.1891 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.9141152.6250
Module start 'layout' 0.00440.0026 740.539139.4453
Module start 'content' 0.00701.1807 779.9844498.2891
Module end 'content' 1.18770.0013 1,278.27348.3203
Script end 1.1890  1,286.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.2305160.0002
Check MTime0.00130.1063160.0001
Mysql Total
Database connection0.00040.033410.0004
Mysqli_queries1.152896.9536570.0202
Looping result0.00050.0393550.0000
Template Total1.152596.920.5763
Template load0.00220.184420.0011
Template processing1.150396.742120.5752
Template load and register function0.00010.011010.0001
states
state_id_array0.00150.127010.0015
state_identifier_array0.00160.134220.0008
Override
Cache load0.00160.1348130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.082520.0005
Fetch class attribute name0.00080.067240.0002
XML
Image XML parsing0.00080.064720.0004
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00120.1007160.0001
String conversion0.00000.000540.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
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
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: 5

Time used to render debug report: 0.0001 secs