Search results caching

I have created two searches within our site. The first searches across the entire site and works great.


The second search is based on a particular metadata field. In this field there are 5 options to choose from. What I wanted to do was have a list of results appear for each option when someone clicks on a particular link. So, I created the search page, selected an option from the drop down list and generated the search result url. I then copied this url and used it as a link on a static page. This worked fine.



The problem I am having is that when someone updates the site the hard coded search link is not picking up that change and I don't know how to get the system to pick up the change? Flushing the cache does not seem to work.



Is there another way to force this to update?

[quote]Is there another way to force this to update?
[right][post=“15056”]<{POST_SNAPBACK}>[/post][/right][/quote]



Search results are not actually cached at all – Matrix always performs the search for every request. The output of each result is cached, to allow Matrix to print the results faster. If you’re not seeing the new results it means the search isn’t finding them.



If you perform the search manually (i.e. by using the search form instead of the link) does it work?

[quote]If you perform the search manually (i.e. by using the search form instead of the link) does it work?
[right][post=“15057”]<{POST_SNAPBACK}>[/post][/right][/quote]



Yes it does. So how do I clear the output of each result? Or how do I phrase the url to perform a new search each time?

If anyone has an idea of what we can do to fix this problem it would be great. Currently until we find an alternative solution we are having to manually change an element of the url so that the results update.


Anyone have any ideas?

Add /_nocache to the end of the static URL – that will force Matrix to re-calculate the results every time.

[quote]Add /_nocache to the end of the static URL – that will force Matrix to re-calculate the results every time.
[right][post=“15498”]<{POST_SNAPBACK}>[/post][/right][/quote]





This does not seem to work? The results still do not change unless we alter the URL manually.



Any other ideas?

[quote]This does not seem to work? The results still do not change unless we alter the URL manually.
[right][post=“15505”]<{POST_SNAPBACK}>[/post][/right][/quote]



You should contact Support – if adding /_nocache doesn’t change the results then something else is doing the caching. If you’re using Squid, make sure that /_nocache is set to never be cached.