No need to delete the "page_on_front" as it's already done #175

Merged
merged 2 commits into from Feb 2, 2017

Projects

None yet

1 participant

@donnchawp
Contributor

Fixes #169
This call to wp_cache_post_id_gc() would recursively delete every cached
page on a site because "page_on_front" points at the homepage, not at
the original URL of the page.
This only happens on sites where the front page is a static page.

@donnchawp donnchawp No need to delete the "page_on_front" as it's already done
Fixes #169
This call to wp_cache_post_id_gc() would recursively delete every cached
page on a site because "page_on_front" points at the homepage, not at
the original URL of the page.
This only happens on sites where the front page is a static page.
98b5362
@donnchawp donnchawp Added "wpsc_delete_related_pages_on_edit" filter to avoid cache deletes
If the wpsc_delete_related_pages_on_edit filer returns 0 then only the
cache for the current post will be deleted. Otherwise the plugin will
delete the front page and paged archives of comments.

See #169
eadec4e
@donnchawp donnchawp merged commit f55dcb5 into master Feb 2, 2017
@donnchawp donnchawp deleted the 169_do_not_delete_so_much branch Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment