Cache clear by URL?

Created on 1 February 2024, 11 months ago

Problem/Motivation

The Cloudflare API accepts clearing cache by specific URL. This is useful for purging non-node pages, such as taxonomy, listing pages, etc. I would be nice to include a feature, perhaps in the settings from, to allow authorized users to specify the URL and click "clear cache".

Would anyone be interested in this idea? I am happy to contribute a first version if the maintainers are interested in this direction.

Proposed resolution

- Add a link "Purge Cloudflare cache for this page" under admin_toolbar_tools.help
- Purges the cache of that URL when user clicks the button.

User interface changes

One change in the menu item as mentioned above.

API changes

Add a public function purgeZoneCacheByUrl() to CloudflareService

Data model changes

No change.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan hktang

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024