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

Create a hook so other plugins/themes can clear Cloudflare Cache #179

Open
blogtutor opened this issue Mar 31, 2022 · 3 comments
Open

Create a hook so other plugins/themes can clear Cloudflare Cache #179

blogtutor opened this issue Mar 31, 2022 · 3 comments
Assignees

Comments

@blogtutor
Copy link
Owner

I'd like to be able to give the Trellis team a hook so that they can trigger a cache clear after generating Critical Path CSS (which can take minutes or hours). So once the CPCSS is ready, Cloudflare will not continue to serve unoptimized content.

They generate the CPCSS per post/page -- so we'd need the cache clear to be a "prefix" clear for just that one URL. This way it will also clear all the comment URLs too.

@ecotechie
Copy link
Collaborator

This seems a bit strange to me. Are they requesting this? Maybe let's discuss this on a call...

@ecotechie
Copy link
Collaborator

Thinking of changing the static method calls to self::purge_cloudflare_cache() to be a do_action( 'clear_cloudflare_cache', $args ) in class-support-cloudflare.php

@ecotechie
Copy link
Collaborator

@blogtutor are we still wanting to do this? Or should we close the ticket?

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

2 participants