When I perform a search, it works the first time and I get correct search results, but if I search again immediately it returns back the results of the first search (like a cached response) If I wait for one minute and do a search again then it shows fresh results.
I’m using Fast CGI cache and I exclude the search pages from cache like this:
The 1st thing I’d do is verify where the caching is happening. Did you test the results with Fast CGI disabled? Did you exclude any other caching systems that could be contributing?