Flow cache?

Author Message

Pål Messenlien

Thursday 08 May 2008 1:35:06 am

I have trouble getting blocks to update dynamic content.
On this page:http://www.hundrearsmalene.no/100aar/Forum
We have some polls who needs to be updated with the amount from each poll in a block. Tried to turn off cache with {set-block scope=root variable=cache_ttl}0{/set-block} in both the view template and the block template. Also tried to setup Smart viewcache rules, but nothing seems to work. Only way to update the content is to re edit the flow page and publish it again. This is also a problem with other blocks with news. How should we handle cache in flow pages?

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

André R.

Sunday 11 May 2008 6:05:11 am

Tried scope=global?

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

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

Pål Messenlien

Tuesday 13 May 2008 2:56:13 pm

Thanks Andre! That worked!. I put it inside the block template. Not sure how much this will pull down the speed of the pages? The polls / surveys on these pages will be used quite heavy in the future.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Tuesday 27 May 2008 11:29:24 am

It worked.. .but it slowed down the webpage alot so we had to remove it.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.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 04:08:18
Script start
Timing: Jan 18 2025 04:08:18
Module start 'layout'
Timing: Jan 18 2025 04:08:18
Module start 'content'
Timing: Jan 18 2025 04:08:18
Module end 'content'
Timing: Jan 18 2025 04:08:18
Script end

Main resources:

Total runtime0.1885 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.0049 587.8203152.6094
Module start 'layout' 0.00490.0039 740.429739.4297
Module start 'content' 0.00880.1781 779.8594548.3125
Module end 'content' 0.18690.0015 1,328.171912.1875
Script end 0.1884  1,340.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.8475160.0002
Check MTime0.00140.7331160.0001
Mysql Total
Database connection0.00050.259010.0005
Mysqli_queries0.144376.5783620.0023
Looping result0.00060.3228600.0000
Template Total0.144876.820.0724
Template load0.00231.228920.0012
Template processing0.142475.576820.0712
Template load and register function0.00010.056810.0001
states
state_id_array0.00090.484510.0009
state_identifier_array0.00090.499820.0005
Override
Cache load0.00191.0247140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.486020.0005
Fetch class attribute name0.00150.775450.0003
XML
Image XML parsing0.00060.315820.0003
class_abstraction
Instantiating content class attribute0.00000.007850.0000
General
dbfile0.00080.4079170.0000
String conversion0.00000.004240.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs