Skip to content

purge URLs on page/post update#206

Merged
patryk merged 4 commits into
cloudflare:masterfrom
macbookandrew:fix-post-update
Jun 25, 2020
Merged

purge URLs on page/post update#206
patryk merged 4 commits into
cloudflare:masterfrom
macbookandrew:fix-post-update

Conversation

@macbookandrew

Copy link
Copy Markdown
Contributor

Fixes #200

Comment thread cloudflare.loader.php Outdated
'deleted_post', // Delete a post
'edit_post', // Edit a post - includes leaving comments
'delete_attachment', // Delete an attachment - includes re-uploading
'post_update', // Update a post

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you link which hook this is?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry…just pushed a change to fix the typo. Here’s the hook: https://developer.wordpress.org/reference/hooks/post_updated/

@macbookandrew

Copy link
Copy Markdown
Contributor Author

@thellimist This change purges the cache for single URLs when the page/post/CPT is updated. I also updated the documentation to match the new behavior.

@thellimist

Copy link
Copy Markdown
Contributor

Hi @macbookandrew,

The core developers of this project has changed. @IcyApril could you notify Patryk.

Thanks

@vojkny

vojkny commented Sep 23, 2019

Copy link
Copy Markdown

Hey, would this also purge the cache on scheduled page publishing?

@patryk patryk merged commit fe430b9 into cloudflare:master Jun 25, 2020
@patryk

patryk commented Jun 25, 2020

Copy link
Copy Markdown
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

Automatic cache purge doesn't work when switching a page from public => private

4 participants