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
Update CF APO compatiblity #5974
Conversation
@Tabrisrp I checked cache clearing and currently everything works except for:
Can you please look into these? 🙏 |
@vmanthos Well, looks like we are synced with cache then ;) |
I added purge after used CSS generation and clean. The CF plugin doesn't have a public method to clean cache based on an URL value, only from post ID, so anything that is not a post type is not going to be cleaned currently. Maybe we can create an issue on their repo so they add a public method for that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fixes, @Tabrisrp! 🙏
The cache is cleared in both cases related to Remove Unused CSS.
We are good to go with this. 👍
NOTE
When WPML was enabled, clearing the used CSS for a URL wasn't clearing the cache on Cloudflare APO while our cache was cleared.
This requires further investigation.
Description
Use CF plugin class methods directly to manage purge everything and partial purge instead of using their hooks that don't work.
Type of change
Checklist: