Forums / General / Search results don't work

Search results don't work

Author Message

Simone D'Amico

Wednesday 12 January 2011 9:08:00 am

Hi,

I've a strange problem with search module. When I make the first search on front-end it works fine but when I try to make another seach with a different keyword, eZ returns the same results of first search.

In the address I've the new keyword but in the search field I've the old keyword with old results.

How can I resolve the problem?

Gaetano Giunta

Wednesday 12 January 2011 9:35:34 am

You might have a cache block in your search template

Principal Consultant International Business
Member of the Community Project Board

Simone D'Amico

Wednesday 12 January 2011 9:40:56 am

No!

I've copied the ezwebin default template in my design folder.

Abdelkader RHOUATI

Thursday 13 January 2011 3:49:33 am

Hello,

Verify your pagelayout.tpl, perhaps you have put a cache block for "$module_result.content" ?

TKS

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Bertrand Dunogier

Friday 14 January 2011 3:06:25 am

You might wanna enable DebugOutput + ShowUsedTemplates, and see what messages / templates you get during the first run and the next ones. This should point you to the right direction.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Simone D'Amico

Friday 14 January 2011 4:09:50 am

The issue depends from this snippet:

{cache-block keys=array( $module_result.uri, $basket_is_empty, $current_user.contentobject_id, $extra_cache_key )}

The code is contained in pagelayout.tpl inside <head> tags. When I delete the code, the search form works fine.

Gaetano Giunta

Friday 14 January 2011 5:11:39 am

Adding a cache-block around the {$module_result.content} block in the pagelayout is considered very bad practice. You already have the view cache taking care of that.

Principal Consultant International Business
Member of the Community Project Board

Simone D'Amico

Friday 14 January 2011 6:05:58 am

I've not added the cache-block around that block but I've only added the block above inside <head> tags as the ezwebin extension does.

eZ debug

Timing: Jan 18 2025 02:05:06
Script start
Timing: Jan 18 2025 02:05:06
Module start 'content'
Timing: Jan 18 2025 02:05:07
Module end 'content'
Timing: Jan 18 2025 02:05:07
Script end

Main resources:

Total runtime0.7410 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.8203180.8516
Module start 'content' 0.00730.6029 769.6719675.3594
Module end 'content' 0.61020.1307 1,445.0313340.4453
Script end 0.7409  1,785.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5130210.0002
Check MTime0.00150.1963210.0001
Mysql Total
Database connection0.00100.128310.0010
Mysqli_queries0.662489.39262130.0031
Looping result0.00200.26692110.0000
Template Total0.714496.420.3572
Template load0.00190.260920.0010
Template processing0.712496.146320.3562
Template load and register function0.00020.024610.0002
states
state_id_array0.00070.099510.0007
state_identifier_array0.00090.116620.0004
Override
Cache load0.00170.2256300.0001
Sytem overhead
Fetch class attribute can translate value0.00120.164250.0002
Fetch class attribute name0.00100.1370110.0001
XML
Image XML parsing0.00190.251050.0004
class_abstraction
Instantiating content class attribute0.00000.0049120.0000
General
dbfile0.00310.4149390.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs