• Hello,

    Is there any way to not cache the search results?
    I don’t use a caching plugin, I manage the browser cache in the classic way from the htaccess.
    I would like the search page not to be cached because I noticed that when a keyword returned an unsuccessful search, if I change the content of the page so that the keyword exists and then re-run a search (not logged_in), there are still no results (even after re-indexing). But if I clear the browser cache and re-run the search, the result is found.

    Thank you for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi doesn’t do any caching at all, so the caching happens somewhere else.

    Thread Starter Thomas

    (@thomhsb)

    Yes, that’s not what I was claiming. I just wanted to know if it was possible to prevent via htaccess the page cache when the url is /?s=
    But I admit that this is not your responsibility.
    Thank you

    Plugin Author Mikko Saari

    (@msaari)

    It’s hard to control the user browser caching, but you can provide caching directives in .htaccess. I don’t know much about that, so you can get better instructions elsewhere.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prevent caching in search results’ is closed to new replies.