App for Cloudflare® Pro

App for Cloudflare® Pro 1.9.8

  • Item seller Item seller Shawn
  • Featured

Automatic cache purging

nickgraynews

New member
I've noticed some issues with the plugin recently on one of my sites that I manage for a friend.

The site is https://dustinhyle.com/blog/

Here are the issues:

* I updated all of his categories, but when I refreshed the blog index, it was still showing the old categories at https://dustinhyle.com/blog/

* When I update an individual blog post, the individual blog post is correctly updated (and the cache is cleared), but the blog index at https://dustinhyle.com/blog/ does not show the updated preview

Similarly, for another site that I help with here https://sorenarnsbo.com/ -- whenever we update an Page (not a post), the cache does not clear on Cloudflare.

We can resolve all of these issues by turning on "Development Mode," which tells me that it is for sure a Cloudflare cache issue.

We can also resolve these issues when we manually log in to the Cloudflare dashboard and purge the entire site cache, or purge it on a per-article basis.
 
I've noticed some issues with the plugin recently on one of my sites that I manage for a friend.

The site is https://dustinhyle.com/blog/

Here are the issues:

* I updated all of his categories, but when I refreshed the blog index, it was still showing the old categories at https://dustinhyle.com/blog/
Updated the categories on individual posts/pages, or edit the categories themselves as a whole (like renaming categories)?

* When I update an individual blog post, the individual blog post is correctly updated (and the cache is cleared), but the blog index at https://dustinhyle.com/blog/ does not show the updated preview
Hmmm... not able to replicate it (works as expected when I test it). A couple things to check...
  • Does the WordPress site have WordPress' cron system disabled? The purge cache function is decoupled from the user experience to make everything faster. If the internal cron job system of WordPress isn't working, potentially the purge cache function would never run even if it was queued. It can also take a couple seconds (and more specifically an HTTP request on the site to trigger the queued cron task).
  • Is the client-side browser cache causing the issue? If you flush the browser cache does it show as expeced?

Similarly, for another site that I help with here https://sorenarnsbo.com/ -- whenever we update an Page (not a post), the cache does not clear on Cloudflare.
Same thing as above... testing a page edit seems to clear the cache as expected when I test it, but it's also relying on the WordPress cron system to be functioning as expected.
 
Actually, I just remembered, if a site specifically disables the WordPress cron system via the DISABLE_WP_CRON constant in their config.php file, it *still* runs, just not as a background task. It might be worth checking WordPress' internal cron "option" which tracks queued cron tasks.

SQL:
SELECT * FROM wp_options WHERE option_name = 'cron';

That's going to be a serialized array of cron tasks WordPress has queued (might at least narrow it down if it's an issue of WordPress no triggering it's queued cron tasks for whatever reason).
 
Back
Top