WP Hive » Troubleshooting and How-To

WP Super Cache problem

(3 posts)

Tags:


  1. tacitus
    Member

    First, let me congratulate you on a super plugin. It will save many people untold hours of work in future.

    Anyway, things are working wonderfully with WP-Hive and my three blogs, but I have come across one problem when I enabled WP Super Cache. In general, the pages are caching just fine--I can see them being added to the cache and they are being served up nice and quickly, but then I noticed one page that wasn't working:

    http://azindex.englishmike.net/gallery/site-index-2/

    If you scroll down you see that this is an example of a multipage index generated by my plugin, AZIndex. The first page (the one you arrive at) is cached fine, but when I try clicking on one of the page links at the top of the index, to take me to another page, the same page (i.e. the first page of the index (starting with "1,000 Place") is served up again instead of the new page further down the index. The URL is correct, but the wrong page is being served up. (Note, the link is working correctly, but only because I am not using WP-Supercache at the moment).

    AZIndex uses a shortcode to generate its output and does not interfere in any way with the usual fetching of pages by WordPress -- the plugin just looks at the incoming URL to see which page of the index to show when the shortcode is called (e.g. .../?pgno=4#azindex-11)

    The reason I think WP-Hive may be the culprit is that I've tested this page on a non-WP-Hive site--which is an exact clone of the AZIndex site ( I copied over all the files and database settings, just removing WP-Hive)--and the caching of the very same page works fine -- all five pages of the index are cached as expected with SuperCache turned on.

    So it seems that something in WP-Hive is interfering with WP Super Cache, and I was wondering if you might know what it could be. It's not a critical bug -- the workaround is to fall back to the "WP-Cache" style caching option, which works fine, only the full-on Supercache option is failing.

    If you want to set up a test case for yourself, just install the AZIndex plugin and create an index with the multipage option set (don't forget to specify the number of items per page), and turn on Supercache. It will take you about 5 minutes, tops.

    Cheers,

    Mike

    Posted 3 years ago #
  2. ikailo
    Developer

    An interesting issue. I will do some testing on my end, but may have to wait until the new version is released to do anything about this.

    Off the top of my head, I suspect it has to do with the multiple sites sharing the same cache folder. The solution may be to somehow advise Supercache to store the cache files in a unique folder for each site in the hive.

    Posted 3 years ago #
  3. tacitus
    Member

    Thanks for the reply. Yeah, that's possible. WP Super Cache isn't the best behaved of plugins in the Hive environment anyway, since when you change some of the settings on the settings page (enable/disable, for example) it does it for all the blogs in the Hive.

    If you need me to do any further testing just drop me a line at my site (or email).

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.