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

Ensure not to delete all cache on post update #171

Closed
wants to merge 2 commits into from

Conversation

DrLightman
Copy link

https://github.com/Automattic/wp-super-cache/issues/169

On post update wp_cache_post_edit() does the test on $wp_cache_clear_on_post_edit to decide to clear all cache or not, but when it calls wp_cache_post_change() this function can override that setting, so I added the test there too.

ps: sorry this is my first PR ever, I hope I got the procedure right.

https://github.com/Automattic/wp-super-cache/issues/169

On post update wp_cache_post_edit() does the test on $wp_cache_clear_on_post_edit to decide to clear all cache or not, but when it calls wp_cache_post_change() this function can override that setting, so I added the test there too.

ps: sorry this is my first PR ever, I hope I got the procedure right.
Ensure not to delete all cache on post update
@donnchawp
Copy link
Contributor

Thanks for the PR. It was the wrong code, but in the right area. Check out #175 which fixes the problem described in #169.

@donnchawp donnchawp closed this Feb 2, 2017
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.

2 participants