Forums / General / Caching of content/search

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