• Resolved sketchref21

    (@sketchref21)


    I added the plugin to help speed up my website. But the activity stream on my front page broke as a result. I received a technical error email from WordPress detailing that the issue stems from my cdn or location where cache is stored. How can i resolve this issue.

    I don’t have a back up available.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @sketchref21,
    First of all while checking your website I can see that, the plugin is not caching your pages at Cloudflare CDN because:

    1. The value of cache-control header is not being set by the plugin. Instead it is being handled by either some other page caching plugin you have or some server level rule. Screenshot: https://i.imgur.com/zOJ6jHZ.jpeg

      If the plugin is working correctly then the value of cache-control header and the value of x-wp-cf-super-cache-cache-control should match. Which is not the case for your website. Screenshot: https://i.imgur.com/bSQ62k2.jpeg
    2. Even if you fix the cache-control header issue, the Cloudflare will still not cache your pages at the CDN level as you are setting a ton of cookies in the response header with set-cookie. When Cloudflare sees the set-cookie header, it will not cache the page thinking the cookie values might be used inside the page to show content dynamically using PHP. Screenshot: https://i.imgur.com/FJdnCHV.jpeg

      This exact same issue is there in your other pages like privacy policy. When using this plugin, please ensure that you do not have any other page caching system in your website. As it is not recommended to use more than one page caching system on any website.

      Let this plugin handle your page caching while you can use other plugins for static file optimization like CSS, JS, images etc.

    =================================

    Now coming to your “Activity Stream” not showing, well, that’s happening I guess because of some security plugin you have added.

    Looking at the browser console you can see that the admin-ajax.php file which handles all the Ajax requests are returning 403 response code. Screenshot: https://i.imgur.com/UhFKcG9.jpeg

    Now looking at the Network tab, to dig into the admin-ajax.php requests it seems whatever security system you have in your website is not allowing the requests to go through:

    1. Cloudflare is not caching any ajax requests as it should, so the problem is not coming from Cloudflare. Screenshot: https://i.imgur.com/gPuRfyj.jpeg
    2. In the response of the Ajax call we see {"wp-auth-check":false}. Screenshot: https://i.imgur.com/Sx30xVj.jpeg
      So, if the pages are not being cached at Cloudflare and Ajax requests are not cached at Cloudflare, then I don’t see a reason for this happening.

    If you disable the plugin, does this problem goes away? Beside if this is a membership site where most user will be logged in user, then this plugin will not help you much. As Cloudflare will not be able to cache content and serve cached content from the CDN as each user will need customized data which mean running PHP and sending the request to the origin server.

    Plugin Contributor iSaumya

    (@isaumya)

    Update:

    It seems the admin-ajax.php that’s throwing 403 and the cause behind the activity streme not being loaded, in the response header I also see: https://i.imgur.com/TsIJtIn.jpeg

    When googling about it, it seems that the X-Middleton stuff is added from Ezoic. So, if they have some kind of cache, you should clear that too. Cause at this point looking at your website, this plugin is not at play and not caching anything.

    Whatever other caching system you have, you should clear cache there.

    Thread Starter sketchref21

    (@sketchref21)

    Thank you very much for your feedback. I apologize to assume it was this plugin. I will use your feedback to make the proper changes and get everything back online.

    Thank you for your time, and I wish you a speedy recovery.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Supercache broke my website’ is closed to new replies.