Forums / Setup & design / Using ezhttp within a template & keeping it dynamic

Using ezhttp within a template & keeping it dynamic

Author Message

Alex Jones

Monday 16 February 2004 12:56:04 pm

Okay, this may be rehashing an old topic, but I am going to ask again as this is the first time I've moved beyond 3.1 development.

I would like to utilize a GET variable within an override template of mine. So, I was planning to utilize ezhttp to grab it and set it as a variable, but that variable ends up being cached. Is there a way for me to ensure the variable isn't cached so I can use it within the override template, or is this not possible without using eZenv and dealing with those inherent problems?

Thanks for the help,

Alex

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

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

Björn Dieding@xrow.de

Thursday 19 February 2004 12:16:03 am

disable the cache for this one tempalte

search the doc for "disable cache"

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Alex Jones

Thursday 19 February 2004 7:31:17 am

I was afraid that was the only option, so I solved the problem another way. As this template would be used for the vast majority of pages on the site, setting it up so that it cannot cache isn't an option.

Ultimately it would be nice for eZ publish to have the ability to take a variable from POST or GET, include it within a template (say, as a fetch parameter) and then cache the resulting page. I assume this is not possible at the moment, though please correct me if my understanding of the caching system is incorrect.

Alex

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

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

eZ debug

Timing: Jan 19 2025 09:53:46
Script start
Timing: Jan 19 2025 09:53:46
Module start 'content'
Timing: Jan 19 2025 09:53:46
Module end 'content'
Timing: Jan 19 2025 09:53:46
Script end

Main resources:

Total runtime0.0201 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 590.4219180.8125
Module start 'content' 0.00660.0063 771.234493.8359
Module end 'content' 0.01290.0071 865.070370.7031
Script end 0.0200  935.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002210.9687120.0002
Check MTime0.00115.6845120.0001
Mysql Total
Database connection0.00083.997210.0008
Mysqli_queries0.003517.521840.0009
Looping result0.00000.070120.0000
Template Total0.006733.410.0067
Template load0.00084.011510.0008
Template processing0.005929.365010.0059
Override
Cache load0.00052.641510.0005
General
dbfile0.004723.4832100.0005
String conversion0.00000.030930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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