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

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

Merged
merged 2 commits into from Feb 2, 2017

Commits on Feb 1, 2017

  1. 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.
    donnchawp committed Feb 1, 2017
    Copy the full SHA
    98b5362 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2017

  1. 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
    donnchawp committed Feb 2, 2017
    Copy the full SHA
    eadec4e View commit details
    Browse the repository at this point in the history