The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Super Cache
Strange Code Appended to Page Navigation Links on Cached Files (3 posts)

  1. Tranny
    Posted 4 years ago #

    I'm using twentyeleven theme on my site. I also use WP Super Cache. It's been working out well but over the last few weeks I've noticed strange issue with page navigation buttons. For logged in members (who are not served cached files) everything is fine. But when a guy logs out, the next/previous navigation buttons have the following code appended at the end of the URL:


    Because of this code, all attempts to navigate to older posts are redirected to the home page. If I clear the cache, it works fine even when logged out - but only for a few minutes. As soon as cached files are created, the navigation buttons contain the code at the end and all clicks are as a result redirected to the home page.

    I have already reinstalled WP (using latest version), reinstalled the theme and reinstalled and reactivated WP Super Cache. Still the same thing is happening. Any idea why it is and how to fix it? Was my site injected with a malicious code or something?

    Thanks a lot ;)


  2. Tranny
    Posted 4 years ago #

    I just noticed that it doesn't seem to occur on tags or categories, only on main blog pagination (all posts). Non cached version works fine, but for some reason cached files are generated with this code appended to the navigation links.

  3. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    I'm not sure where this comes from but I suspect it's cached requests by malicious bots trying to inject code into your site.

    Check "Don’t cache pages with GET parameters" on the advanced settings page. That should help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic