ezhttp and cache

Author Message

luis muñoz

Tuesday 12 June 2007 1:19:02 am

Hi,

Is there any way for cache to be enabled whe a template receives get params?

I found {set-block scope=root variable=cache_ttl}0{/set-block} to work but it disables cache and that isn´t what i need.

Any help would be apreciated

Luis

André R.

Tuesday 12 June 2007 1:46:46 am

If you use view params the viewcache should handle it correctly.

uri:
some_nice_uri/(my_var)/44/(my_other_var)/yes

code:
{def $myvar = first_set($view_parameters.my_var, 0)}

Using first_set will handle cases where it's not set..

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

luis muñoz

Tuesday 12 June 2007 2:33:45 am

It worked like a charm, thanks

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 03:32:38
Script start
Timing: Jan 31 2025 03:32:38
Module start 'layout'
Timing: Jan 31 2025 03:32:38
Module start 'content'
Timing: Jan 31 2025 03:32:38
Module end 'content'
Timing: Jan 31 2025 03:32:38
Script end

Main resources:

Total runtime0.0271 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0156151.1953
Module start 'layout' 0.00740.0045 739.2109220.6563
Module start 'content' 0.01190.0137 959.8672997.7734
Module end 'content' 0.02560.0015 1,957.640629.9922
Script end 0.0271  1,987.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003010.8831140.0002
Check MTime0.00113.9747140.0001
Mysql Total
Database connection0.00083.017210.0008
Mysqli_queries0.004717.300630.0016
Looping result0.00000.047410.0000
Template Total0.00113.910.0011
Template load0.00082.991810.0008
Template processing0.00020.888010.0002
Override
Cache load0.00062.162610.0006
General
dbfile0.003011.212580.0004
String conversion0.00000.032540.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