Cache Searches
-
Nice cache plugin, simple and fast – thankyou! I had a few small problems starting out, thought you may like some feedback. I am using the “snippet” method (htaccess rewrites) which I favor as its the fastest.
First problem I encountered was that all the images disappeared. Being on an old MU multisite install (over 10 years old), I realised quickly, that it was the old uploads directory problem. After jamming the needed rewrite rule into the snippet section “wp override”, the images appeared again – all sweet.
Upon testing the working of the cache, I found another issue, the Categories were not being cached. Not sure why, as the Tags got cached without problem. So I headed to the “Cache Inclusions” section in settings, entered the Category base and a wildcard, in the acceptable regex format, and it worked!
Now I have only one thing left I’d like to cache which eludes me, hence my writing here today. I would like to cache the Searches, as I did with wp-super-cache. I have a rewrite that outputs the search url in the form
/search/query-term/
So I tried adding it as an Inclusion
^\/search\/.*\/
and a few other combinations, but still can’t get it to cache the searches.
I tried generating the search urls with a function instead of htaccess rewrite, still no joy. I even tried doing it without the snippet, running Cache Enabler standard php mode, no difference.Any ideas how to cache searches on Cache Enabler?
- The topic ‘Cache Searches’ is closed to new replies.