Ez Find & Search.tpl cache problem

Author Message

Jérémie Caulier

Thursday 21 April 2011 2:34:36 am

Hi,

I created new extension and i overrided ez find default search.tpl into myextension/mydesign/myextension/templates/content/seach.tpl.

When I try to perform search I have always the same result, result seems to be cached.

I tried to place this code into the header of search.tpl template :

{set-block scope=root variable=cache_ttl}0{/set-block}

but there is no effect, the search result is always the first research.

Do you have any idea where the problem might come from ?

Peter Keung

Thursday 21 April 2011 8:49:35 am

Check to see whether in your pagelayout.tpl, {$module_result.content} is within a cache block. This problem is not noticeable on node views since you're used to page being cached by the viewcache. {$module_result.content} should always be outside of cache blocks.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Jérémie Caulier

Tuesday 26 April 2011 2:19:45 am

All seems to be ok.

I had a cache block into my page layout file.

Thnx

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 18 2025 01:56:11
Script start
Timing: Jan 18 2025 01:56:11
Module start 'layout'
Timing: Jan 18 2025 01:56:11
Module start 'content'
Timing: Jan 18 2025 01:56:12
Module end 'content'
Timing: Jan 18 2025 01:56:12
Script end

Main resources:

Total runtime0.8293 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.0092 587.9219152.6250
Module start 'layout' 0.00920.0048 740.546939.4531
Module start 'content' 0.01390.8141 780.0000533.7500
Module end 'content' 0.82800.0012 1,313.75008.1563
Script end 0.8292  1,321.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3889160.0002
Check MTime0.00130.1605160.0001
Mysql Total
Database connection0.00190.225010.0019
Mysqli_queries0.765492.3006570.0134
Looping result0.00060.0746550.0000
Template Total0.787795.020.3938
Template load0.00250.303420.0013
Template processing0.785294.678920.3926
Template load and register function0.00020.028210.0002
states
state_id_array0.00100.122210.0010
state_identifier_array0.00160.188020.0008
Override
Cache load0.00200.2423180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072020.0003
Fetch class attribute name0.00130.151040.0003
XML
Image XML parsing0.00230.275220.0011
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00230.2755170.0001
String conversion0.00000.001540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs