Caching Conflict Causing Comments Not to Load
-
I am having an issue with several client sites (since the major 2.0 overhaul) where sometimes comments won’t load when scrolling to that section of the post. It works most of the time, but sometimes there is an error. Clearing the cache on the site+Cloudflare always seems to fix the issue, but obviously that’s not something that can be expected to constantly be done on large, heavy traffic sites. I can’t cross check this against any other hosting companies, but all the clients experiencing this are using BigScoots and their tightly integrated Cloudflare caching plugin. They are also all on the Astra theme with Astra Pro plugin, but they have been running this plugin for a long time without any issues until the 2.0 overhaul.
Based on debugging, it seems like a caching conflict of some kind is causing the issue (since clearig the cache fixes the issue every time) although there are specific rules in Cloudflare to bypass cache there for any /wp-json/ request.
I did notice that wp_create_nonce( ‘wp_rest’ ) runs whether the user is logged in or out in includes/front/class-assets.php and typically that is something not needed for read-only requests from logged out users. It may be completely appropriate, but it was the only thing I flagged as a possible cause to this weird behavior.
You must be logged in to reply to this topic.