Purge cache for this page only not working
-
Hi,
For the last day or so, updated pages don’t refresh. I also can’t purge single pages either via the plugin or the CF dashboard.
The only way I can refresh any changes I make to individual pages is to do a full purge.
I’m pretty certain it is not a plugin issue. But how can I check if it’s an issue with Cloudflare?
I’ve tried the CF community forum for ideas, but with no luck.
-
That’s what I thought, @isaumya.
All I can do is hope that the issue is noticed by CF on its Community forum.
I had this same issue a year or so ago.
https://community.cloudflare.com/t/single-file-cache-purging-not-working/281900
BTW, one last question.
I notice on the site I have changed to using Workers that there is now no cache buster (?swcfpc=1) in URLs when logged in. Is this normal behavior?
Hi @diriras,
as I said earlier the logs are showing that on sending the purge request the CF API is not throwing any errors but rather sending success. But the wired part is it is actually not happening.So, there is definitely some issue going on inside Cloudflare where despite API showing success, the task is actually not getting performed.
————–
Hi @bobsled,
All I can do is hope that the issue is noticed by CF on its Community forum.
I had this same issue a year or so ago.– Yes, I remember. Hopefully, they will fix it soon.
I notice on the site I have changed to using Workers that there is now no cache buster (?swcfpc=1) in URLs when logged in. Is this normal behavior?
– Yes. Workers doesn’t use cache buster. Cache buster is only used for the page rule mode as it is needed there. The worker is a much-advanced system and hence doesn’t require a cache buster.
Thanks for the update and info, @isaumya.
I suppose all we can do is wait for CF to take some action.
Hi. I think I have the same problem.
Since yesterday cache doesn’t purge at all using wipe cache from plugin or from CF dashboard. My website refreshes after hours after changes (e.g new posts).I can see my changes only when beeing logged in to wp, once I log out everything is old. The plugin log:
Since yesterday logs are different than before: https://dpaste.com/36GUYC8L6
Hello, I just tried Cloudflare plugin for WordPress and caching still doesn't work. In the Apply Recommended Cloudflare Settings for WordPress option, when I enabled it keeps rotating for even and never ends, which means a communication error with Cloudflare maybe. Also the Always Online option doesn't work from the plugin when I enabled it. In Cloudflare it stays off Bottom line there is an issue with Cloudflare CDN caching for sure, and Engineers must have a look into it
-
This reply was modified 2 years, 5 months ago by
diriras.
I just tried Purge cache and enable Dev mode on CF panel. For me nothing updates. My website has old (from few hours) content even in Dev mode. So something is really bad here. Tested 2 browsers.
Huh! That is super weird. Can you check the response header? Cause when Dev mode is on all cache should be bypassed.
cache-control s-maxage=31536000, max-age=60 x-wp-cf-super-cache cache x-wp-cf-super-cache-active 1 x-wp-cf-super-cache-cache-control s-maxage=31536000, max-age=60 x-wp-cf-super-cache-cookies-bypass swfpc-feature-not-enabled x-fastcgi-cache HIT cf-cache-status DYNAMIC report-to {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=%2Bv3eBM8u5%2F1cgE3XU%2B21dhtLTbje1sDfTdKJiTY3Fa3geJeJQUPJwnFEwBq9xGLq5CRaBjZ%2BvnNNe1bNSYBJQ2ifIERo9mZuARq5Ou4A8OJLkrV3ccKabD8nprtvYP3Na6cgHMdEJbK05r5c"}],"group":"cf-nel","max_age":604800} nel {"success_fraction":0,"report_to":"cf-nel","max_age":604800} server cloudflare
Yah so
cf-cache-status DYNAMIC
means that cloudflare is not serving content from the cache. But I do see you also have Fast CGI cache added to your site:x-fastcgi-cache HIT
.It is highly not recommended to have more than one page caching system on any site. So, try disabling your Fast CGI cache.
Disabling Fast CGI is complicated for me. It was always on I guess years before. I also reset plugin, and set no query string for cf. Nothing helps for now. My website has now 24h not changed content.
Can you try purging your fastcgi cache?
Yes I managed to purge the fastcgi cache using the plugin from Matt Gadient (https://mattgadient.com/flushing-the-nginx-fastcgi-cache-via-php-and-or-wordpress/). This plugin has the auto option to purge cache every post update/save, theme update etc. Before purge I reset your plugin and setup again using new Global Key from CF. After 10 minutes my page refreshed to actual content.
But today I checked and modified my last post and nothing changed after 15 minutes… Fast cgi cache has been purged correctly.
So it worked just once. Also purging url cache via cf doesnt do anything.
I assume its still CF issue.hello,
new logs after trying to clear single page cache.
[2022-10-21 08:04:27] [cloudflare::purge_cache_urls] Request URL: https://api.cloudflare.com/client/v4/zones/7554b4a746bb264a5b2336ea7f30524a/purge_cache [2022-10-21 08:04:27] [cloudflare::purge_cache_urls] Request Body: {"files":["https:\/\/sportlive.gr\/","https:\/\/sportlive.gr\/author\/sportlive-gr\/","https:\/\/sportlive.gr\/author\/sportlive-gr\/feed\/","https:\/\/sportlive.gr\/"]} [2022-10-21 08:04:27] [cloudflare::purge_cache_urls] Response: {"result":null,"success":false,"errors":[{"code":10000,"message":"Unauthorized"}],"messages":[]} [2022-10-21 08:04:27] [cache_controller::purge_urls] Unable to purge some URLs from Cloudflare due to error: Unauthorized (err code: 10000)
Purge whole cache is working fine!
[2022-10-21 08:06:08] [cache_controller::ajax_purge_whole_cache] Purge whole Cloudflare cache [2022-10-21 08:06:08] [cloudflare::purge_cache] Request URL: https://api.cloudflare.com/client/v4/zones/7554b4a746bb264a5b2336ea7f30524a/purge_cache [2022-10-21 08:06:08] [cloudflare::purge_cache] Request Body: {"purge_everything":true} [2022-10-21 08:06:08] [cloudflare::purge_cache] Response: { "result": { "id": "7554b4a746bb264a5b2336ea7f30524a" }, "success": true, "errors": [], "messages": [] } [2022-10-21 08:06:08] [cache_controller::purge_all] Purged whole Cloudflare cache [2022-10-21 08:06:08] [cloudflare::start_preloader_for_all_urls] Getting last published posts for post types: Array ( [0] => post [1] => page [2] => tdc-review [3] => tdc-review-email [4] => adni_banners [5] => adni_adzones [6] => adni_campaigns [7] => tdb_templates ) [2022-10-21 08:06:09] [cache_controller::start_cache_preloader_for_specific_urls] Unable to start the preloader. Another preloading process is currently running.
Also when I try to setup the plugin with Cloudflare API Token I got the:
Unauthorized to access requested resource (err code: 9109)
With logs:[2022-10-21 08:33:07] [cloudflare::cloudflare_get_browser_cache_ttl] Request https://api.cloudflare.com/client/v4/zones/7554b4a746bb264a5b2336ea7f30524a/settings/browser_cache_ttl [2022-10-21 08:33:09] [cloudflare::cloudflare_get_browser_cache_ttl] Response {"result":{"id":"browser_cache_ttl","value":0,"modified_on":"2022-01-28T20:02:25.754533Z","editable":true},"success":true,"errors":[],"messages":[]} [2022-10-21 08:33:09] [cloudflare::cloudflare_set_browser_cache_ttl] Request URL: https://api.cloudflare.com/client/v4/zones/7554b4a746bb264a5b2336ea7f30524a/settings/browser_cache_ttl [2022-10-21 08:33:09] [cloudflare::cloudflare_set_browser_cache_ttl] Request body: {"value":0} [2022-10-21 08:33:11] [cloudflare::cloudflare_set_browser_cache_ttl] Response: {"success":false,"errors":[{"code":9109,"message":"Unauthorized to access requested resource"}],"messages":[],"result":null}
For me it started working. I’ve setup the plugin once again, this time with new API Token + enabled Browser caching via nginx rules. My website updated within 15-20 minutes after making a test change. But still testing.
-
This reply was modified 2 years, 5 months ago by
- The topic ‘Purge cache for this page only not working’ is closed to new replies.