TemplateCache and offset conflict

Author Message

Jean-Luc Chassaing

Wednesday 21 January 2009 3:53:24 am

Hello,

My website works with ez 4.0.1.

In my website news page, all the articles are displayed and sorted by page using the google navigator template.

The problem is that when TemplateCache is set to enabled in my siteaccess the pages with or whithout the offset parameter display the same content.

I 've tried setting {set-block scope=root variable=cache_ttl}0{/set-block}
or {cache-block expiry=0} in my template but nothing works when TemplateCache is set to enabled.

 

André R.

Wednesday 21 January 2009 5:06:14 am

Do you use offset in pagelayout inside a cache-block or do you have a cache-block inside a node 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

Jean-Luc Chassaing

Wednesday 21 January 2009 5:17:11 am

You got it right, I had an unclosed cache-block in my pagelayout template.

Thank you very much.

 

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 19 2025 04:39:17
Script start
Timing: Jan 19 2025 04:39:17
Module start 'layout'
Timing: Jan 19 2025 04:39:17
Module start 'content'
Timing: Jan 19 2025 04:39:17
Module end 'content'
Timing: Jan 19 2025 04:39:17
Script end

Main resources:

Total runtime0.0182 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 590.3125152.6250
Module start 'layout' 0.00800.0040 742.937539.4453
Module start 'content' 0.01200.0040 782.382889.3359
Module end 'content' 0.01590.0022 871.718834.3047
Script end 0.0182  906.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003016.6514140.0002
Check MTime0.00126.7872140.0001
Mysql Total
Database connection0.00116.064810.0011
Mysqli_queries0.003519.327830.0012
Looping result0.00000.132210.0000
Template Total0.001910.410.0019
Template load0.00105.538710.0010
Template processing0.00094.841110.0009
Override
Cache load0.00073.737810.0007
General
dbfile0.00021.310180.0000
String conversion0.00000.065440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs