Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WordPress action for executing code after entire cache has been purged with purgeCacheEverything #549

Open
2 tasks done
janvitos opened this issue Sep 18, 2024 · 0 comments

Comments

@janvitos
Copy link
Contributor

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the plugin and it is still present.

WordPress version

6.6.2

Cloudflare-WordPress version

4.12.8

PHP version

8.2.23

Expected result

I believe there is currently no way to execute code after the entire cache has been purged with purgeCacheEverything. I am facing a problem where I am trying to prime the Cloudflare cache by executing a script, but some URLs aren't primed because the script is executed too rapidly and it tries to prime the first URLs while they haven't been purged yet. Running the script on a timed delay would still be met with uncertainty, so the best way would be to be able to execute code once we know with certainty that the cache has been purged.

Actual result

No action exist to execute code after the entire cache has been purged with purgeCacheEverything.

Steps to reproduce

No need for steps.

Additional factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant