WordPress.org

Forums

WP Super Cache
WP Super Cache deletes cached pages on comment (3 posts)

  1. chadrew
    Member
    Posted 2 years ago #

    I've noticed that the new 1.1 version of Super Cache deletes cached pages (e.g. domain.com/page/1/, domain.com/page/2/, and so on) when a comment is made. I have "Only refresh current page when comments made" checked in options.

    This definitely wasn't happening in the old version, or perhaps the debug wasn't showing it. Is this intended behaviour?

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    This might be a bug. The "Only refresh current page when comments made" code didn't trap all the delete commands. It's possible that this was one I didn't fix.

  3. chadrew
    Member
    Posted 2 years ago #

    It seems this is still happening with 1.2, if I'm reading the log right.

    17:55:36 /wp-comments-post.php wp_cache_post_edit: Clearing cache for post 6796 on post edit.
    17:55:36 /wp-comments-post.php wp_cache_post_change: comment detected. only deleting post page.
    17:55:36 /wp-comments-post.php supercache dir: /home/public_html/wp-content/cache/supercache/domain.com/coupons/
    17:55:36 /wp-comments-post.php wp_cache_post_id_gc post_id: 6796 http://domain.com/coupons clearing cache in /home/public_html/wp-content/cache/supercache/domain.com/coupons/.
    17:55:36 /wp-comments-post.php prune_super_cache: wp_cache_rebuild_or_delete( /home/public_html/wp-content/cache/supercache/domain.com/coupons/index.html )
    17:55:36 /wp-comments-post.php rebuild_or_gc: rename to /home/public_html/wp-content/cache/supercache/domain.com/coupons/index.html.needs-rebuild
    17:55:36 /wp-comments-post.php wp_cache_post_id_gc clearing cache in /home/public_html/wp-content/cache/supercache/domain.com/coupons//page/.
    17:55:36 /wp-comments-post.php wp_cache_post_id_gc clearing cache in /home/public_html/wp-content/cache/supercache/domain.com//page/.
    17:55:36 /wp-comments-post.php prune_super_cache: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/2/index.html
    17:55:36 /wp-comments-post.php gc: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/2, forced delete
    17:55:36 /wp-comments-post.php prune_super_cache: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/3/index.html
    17:55:36 /wp-comments-post.php gc: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/3, forced delete
    17:55:36 /wp-comments-post.php prune_super_cache: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/4/index.html
    17:55:36 /wp-comments-post.php gc: deleted /home/public_html/wp-content/cache/supercache/domain.com//page/4, forced delete

    Not exactly a big issue, but I thought I'd let you know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic