how is this possible? (for lack of a better description)

Author Message

Rinze Cats

Tuesday 15 June 2004 3:19:06 am

I use the following code to prevent certain parts of my site from caching, depending on the section or the uri.tail.

the code works.

{section show=or($DesignKeys:used.section|eq(31),$DesignKeys:used.section|eq(23),$site.uri.tail|eq('content/search'),$site.uri.tail|eq('content/advancedsearch'),$site.uri.tail|eq('user/register'),$site.uri.tail|eq('user/login'))}
 no-caching allowed<br><br>
{include uri="design:content_template_flow.tpl"}
{section-else}
{cache-block keys=$uri_string}
{include uri="design:content_template_flow.tpl"}
{/cache-block}
{/section}

However, when I print the following code first, the code doesn't work anymore. I simply use the code below during development to understand the values I am comparing against . How can this influence the logic?. Can anybody confirm this? Adding the code below causes the above displayed section to behave differently. Btw, I have tested it with and without the code after deleting the entire cache dir.

designkeys <br />{$DesignKeys:used|attribute(show,5)}
site <br />{$site|attribute(show)}

kind regard,
rinze

Alex Jones

Tuesday 15 June 2004 6:12:40 am

I would report that as a bug as that behaviour doesn't make any sense.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 31 2025 06:16:45
Script start
Timing: Jan 31 2025 06:16:45
Module start 'layout'
Timing: Jan 31 2025 06:16:45
Module start 'content'
Timing: Jan 31 2025 06:16:45
Module end 'content'
Timing: Jan 31 2025 06:16:45
Script end

Main resources:

Total runtime0.0145 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.0046 588.3594151.2266
Module start 'layout' 0.00460.0021 739.585936.6797
Module start 'content' 0.00680.0063 776.265690.3438
Module end 'content' 0.01300.0014 866.609429.9922
Script end 0.0145  896.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.0337140.0002
Check MTime0.00117.7465140.0001
Mysql Total
Database connection0.00074.666710.0007
Mysqli_queries0.001812.214030.0006
Looping result0.00000.069110.0000
Template Total0.00117.610.0011
Template load0.00085.792610.0008
Template processing0.00031.733310.0003
Override
Cache load0.00064.046110.0006
General
dbfile0.001812.599280.0002
String conversion0.00000.039540.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