Caching of content/search

Author Message

Håvard Bergersen

Thursday 17 June 2010 1:03:44 am

I know this problem has been mentioned before, but I can't seem to find a solution anywhere..

The problem is quite similar to this http://share.ez.no/forums/developer/search-cache-problem

The problem is that when i search something (using ezfind btw) I get correct results, but when i try to chenge the search to something else I get the same results as before, so is seems like the result of a search is cached..

How can this be?

And how ca this be fixed?

Thanks

André R.

Thursday 17 June 2010 4:59:13 am

There are no caching of search content by default other then Solr cache for ezfind, but I don't think that is what you have issues with.

Typical mistakes would be:

  • Aggressive proxy cache, they shouldn't normally cache POST requests, and I presume you use post.
  • A aggressive cache-block added inside search result template
  • A cache-block in pagelayout that either have been closed after $module_result.content by mistake or not closed at all making it cache the rest of the file including $module_result.content

Anything that fits?

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

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 29 2025 23:49:20
Script start
Timing: Jan 29 2025 23:49:20
Module start 'layout'
Timing: Jan 29 2025 23:49:20
Module start 'content'
Timing: Jan 29 2025 23:49:20
Module end 'content'
Timing: Jan 29 2025 23:49:20
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1250151.2109
Module start 'layout' 0.00460.0018 739.335936.6484
Module start 'content' 0.00640.0119 775.984490.7031
Module end 'content' 0.01830.0012 866.687529.9922
Script end 0.0196  896.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002110.5514140.0001
Check MTime0.00094.6673140.0001
Mysql Total
Database connection0.00094.602810.0009
Mysqli_queries0.00178.490630.0006
Looping result0.00000.040210.0000
Template Total0.00094.710.0009
Template load0.00073.764810.0007
Template processing0.00020.961010.0002
Override
Cache load0.00052.691710.0005
General
dbfile0.006834.503080.0008
String conversion0.00000.029240.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