Forums / Developer / Search

Search

Author Message

Muhammad Khalid Majeed

Tuesday 11 May 2004 5:15:20 am

I have facing the problem in search. When i search anyword in the site and when the result comes. Then again try to search anyother word. But it is not displaying the search result for the new word. It again display the old result. I am confused why its happening.

But if i cleared the cache then it display the accurate result. I think some problem with cache but i can't understand.
Plz help me.

Muhammad Khalid
Software Engineer
www.webgurru.net

Mark Marsiglio

Tuesday 11 May 2004 5:50:44 am

Have you modified any of the cache-block settings on your templates? If you enclosed the search results template in a cache block it could have this effect. The search results template is called in the pagelayout.tpl file with the line

   {$module_result.content}  

If this line is enclosed in a cache block, try removing it and see if that fixes the problem.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Muhammad Khalid Majeed

Tuesday 11 May 2004 6:17:12 am

Thanks Mark,

{$module_result.content} was inside the cache-block. But now i have question. If i remove cache-block then how can be build the cache for the templates? Will it work without this sentence?

Muhammad Khalid
Software Engineer
www.webgurru.net

Cody Wu

Tuesday 02 March 2010 12:50:10 am

Dear Muhammad Khalid

I have the same search issue as yours.
Whats your solution for it, could you share it?

Thank you very much!

Best regards,

Cody