schnabul
Forum Replies Created
-
Hi
Concerning your question 2: I am making a post request to the Cronjob URL via a python script.
My settings: Disable cache purging using queue: YES
for a better success rate, i think the problem occurrs less with this setting; but not perfect as you can see.
if problem occurs: mainpage cache is always purged. the problem is on subpages where i embed latest articles via blog module. And on all articles where the new (related) ones aren’t displayed as well.
the logs are:
[2025-02-06 17:14:27] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:14:27] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug1\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:14:32] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:14:32] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8174 and related contents - Fired action: clean_post_cache
[2025-02-06 17:14:34] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:14:34] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug2\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:14:34] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:14:34] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8175 and related contents - Fired action: clean_post_cache
[2025-02-06 17:14:49] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:14:49] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug3\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:14:49] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:14:49] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8176 and related contents - Fired action: clean_post_cache
[2025-02-06 17:15:05] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:15:05] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug4\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:15:06] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:15:06] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8177 and related contents - Fired action: clean_post_cache
[2025-02-06 17:15:08] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:15:08] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug5\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:15:08] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:15:08] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8178 and related contents - Fired action: clean_post_cache
[2025-02-06 17:15:15] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:15:15] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug6\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:15:15] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:15:15] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8179 and related contents - Fired action: clean_post_cache
[2025-02-06 17:15:18] [cloudflare::purge_cache_urls_cache] Request URL: https://api.cloudflare.com/.../purge_cache
[2025-02-06 17:15:18] [cloudflare::purge_cache_urls_cache] Request Body: {"files":["https:\/\/domain.com\/slugslug7\/","https:\/\/domain.com\/bereich\/allgemein\/","https:\/\/domain.com\/author\/authooooor\/","https:\/\/domain.com\/author\/authooooor\/feed\/","https:\/\/domain.com","https:\/\/domain.com?feed=rss2","https:\/\/domain.com\/"]}
[2025-02-06 17:15:18] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2025-02-06 17:15:18] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 8180 and related contents - Fired action: clean_post_cache
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 0: {"success":true,"errors":[],"messages":[],"result":{"id":"displayedid"}}
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 1: {"success":true,"errors":[],"messages":[],"result":{"id":"displayedid"}}
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 2: {"success":true,"errors":[],"messages":[],"result":{"id":"displayedid"}}
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 3: {"success":true,"errors":[],"messages":[],"result":{"id":"displayedid"}}
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 4: {"success":true,"errors":[],"messages":[],"result":{"id":"displayedid"}}
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 5: {"success":false,"errors":[{"code":1134,"message":"Unable to purge, rate limit reached. Please wait and consider throttling your request speed"}],"messages":[],"result":null}
REPEAT OF ERROR UNTIL:
[2025-02-06 17:15:58] [cloudflare::purge_cache_urls_async_cache] Response for request 380: {"success":false,"errors":[{"code":1134,"message":"Unable to purge, rate limit reached. Please wait and consider throttling your request speed"}],"messages":[],"result":null}
[2025-02-06 17:15:59] [cache_controller::purge_all] Purged only 11414 HTML pages from Cloudflare
[2025-02-06 17:15:59] [cache_controller::cronjob_purge_cache] Cache purging completeafter that i have to purge manually, and most of the time this also fails (Setting: “Purge HTML pages only”: YES). then i have to “Force Purge Everything”, which finally works:
[2025-02-06 19:49:22] [cache_controller::ajax_purge_whole_cache] Purge whole Cloudflare cache
[2025-02-06 19:49:22] [cloudflare::purge_cache_urls_async_cache] Response for request 0: {“success”:true,”errors”:[],”messages”:[],”result”:{“id”:”zoneid”}}
[2025-02-06 19:49:22] [cloudflare::purge_cache_urls_async_cache] Response for request 1: {“success”:true,”errors”:[],”messages”:[],”result”:{“id”:”zoneid”}}
[2025-02-06 19:49:22] [cloudflare::purge_cache_urls_async_cache] Response for request 2: {“success”:true,”errors”:[],”messages”:[],”result”:{“id”:”zoneid”}}
[2025-02-06 19:49:22] [cloudflare::purge_cache_urls_async_cache] Response for request 3: {“success”:true,”errors”:[],”messages”:[],”result”:{“id”:”zoneid”}}
[2025-02-06 19:49:22] [cache_controller::purge_all] Purged only 110 HTML pages from Cloudflare
[2025-02-06 19:51:19] [cache_controller::ajax_purge_whole_cache] Purge whole Cloudflare cache
[2025-02-06 19:51:20] [cloudflare::purge_cache] Cache purged successfully.
[2025-02-06 19:51:20] [cache_controller::purge_all] Purged whole Cloudflare cache
I have another Question: what happens if i put “/*” in “Prevent the following URIs to be cached”. Would this be a workaround to exclude HTML from being cached? Will everything else (js, css, images…..) still be cached?
- This reply was modified 1 year, 4 months ago by schnabul.
There definitely is a problem with the cache purge function (via cronjob url and backend button). another website of mine (divi-elegantthemes) has the same bug, so i doesn’t seem to be template-specific.
A subpage with a blog module in it doesn’t get cache-cleared while other subpages show the latest articles and are working just fine.
I finally had success clearing this subpage via the “force purge everything”cache” button. I am using the option “Purge HTML pages only”.
- This reply was modified 1 year, 4 months ago by schnabul.
same here with me. Sometimes it works, sometimes not. most of the times the main-page gets purged and is working properly. but subpages dont get “updated” pretty often. kind of bad………
- This reply was modified 1 year, 4 months ago by schnabul.
just use the cronjob url. you can find it in your backend: super page cache -> Purge the whole Cloudflare cache via Cronjob.
your hoster most likely offers a cronjob function (sometimes called “planned functions”), where you can add your task to run every 24 hours, automating processes. In your case: “visit a URL every 24 hours”
in the settings: advanced – other settings – Purge cache URL secret key
i wanted to use the opportunity to ask if it is possible to just clear html files via the cronjob method (“domain.org?swcfpc-purge-all=1&swcfpc-sec-key=XXX&swcfpc=1”) instead of purging the whole cache.
reason: i update my sites automatically with new posts on a daily basis. i have related post and latest post widgets. the cache doesn’t update automatically on a lot of sites. so i guess the method mentioned above would be the best.