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>

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 02:16:29
Script start
Timing: Jan 19 2025 02:16:29
Module start 'layout'
Timing: Jan 19 2025 02:16:29
Module start 'content'
Timing: Jan 19 2025 02:16:30
Module end 'content'
Timing: Jan 19 2025 02:16:30
Script end

Main resources:

Total runtime0.9169 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3047152.6406
Module start 'layout' 0.00550.0040 741.945339.4766
Module start 'content' 0.00950.9062 781.4219536.9297
Module end 'content' 0.91570.0012 1,318.351612.1250
Script end 0.9168  1,330.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3769160.0002
Check MTime0.00130.1433160.0001
Mysql Total
Database connection0.00080.081910.0008
Mysqli_queries0.870594.9379570.0153
Looping result0.00050.0584550.0000
Template Total0.882696.320.4413
Template load0.00200.218020.0010
Template processing0.880696.040920.4403
Template load and register function0.00010.010710.0001
states
state_id_array0.00160.175910.0016
state_identifier_array0.00110.115920.0005
Override
Cache load0.00160.1747170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.076320.0003
Fetch class attribute name0.00120.132150.0002
XML
Image XML parsing0.00100.111920.0005
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00090.1024220.0000
String conversion0.00000.001940.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs