WordPress.org

Ready to get started?Download WordPress

Forums

Hyper Cache
[resolved] Redirect loop on pages with pagination (4 posts)

  1. Solinx
    Member
    Posted 1 year ago #

    I'm loving the effectiveness of this plugin, but I've run into a major issue. Whenever I browse a paged archive or category I get a redirect loop error whenever I return to a previously cached page from that archive or category.

    Anyone having the same issue?

    http://wordpress.org/extend/plugins/hyper-cache/

  2. Solinx
    Member
    Posted 1 year ago #

    Just had some more time to test this. I performed a clean WP install (3.4.1), added a second post, set the posts-per-page setting to 1 and set permalink structure to /%postname%/.

    Browsing to an archive page, like <site_url>/2012/08/page/2/, for the 2nd time causes the redirect loop error to appear.

    This is a rather obvious bug, so I'm guessing it is connected to a recent change in the code, either in the plugin, or in WP.

  3. Solinx
    Member
    Posted 1 year ago #

    Solved my own issue. By disabling the "Redirect caching" option... It really was as simple as that.

    I still like this plugin, but after looking at the code structure and seeing all the minor errors it produces when you turn on debug mode, I've got to be honest and say there is room for improvement there. I'm swamped with work now, but (if I'm keeping this plugin around) I'll be sure to have a look at these issues eventually.

    From what I can tell it still beats the heavier caching plugins on low resource setups, and to be fair I've not checked to see how many errors these heavier plugins produce.

    Edit:
    The option fixed the 'redirect loop' issue. But then it did not cache the paged archives and categories. To fix this I had to comment out line 290 in wp-content/plugins/hyper-cache/plugin.php. So far everything is working great.

  4. P3air
    Member
    Posted 1 year ago #

    excellent find!

    we had similar issues in a NGINX environment. We ended up in a 'death-loop' (redirect)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic