Title: Comment purging
Last modified: August 30, 2016

---

# Comment purging

 *  Resolved [zaone](https://wordpress.org/support/users/zaone/)
 * (@zaone)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/comment-purging/)
 * Hello is there any way to prevent page purging when a comment is published?
    
   And as a side note, is there any automatic purging being done by the plugin without
   any modifications like editing and commenting? Excluding the expiration set in
   the Varnish config. Thank you!
 * [https://wordpress.org/plugins/varnish-http-purge/](https://wordpress.org/plugins/varnish-http-purge/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 9 months ago](https://wordpress.org/support/topic/comment-purging/#post-6350312)
 * No, you cannot prevent purging when there’s a comment, because that’s actually
   an ‘edit_post’ action.
 * > edit_post
   > Runs when a post or page is updated/edited, including when a comment is added
   > or updated (which causes the comment count for the post to update). Action 
   > function arguments: post or page ID.
 * I’m assuming the reason you’re asking is that you have a lot of comments and 
   thus a lot of varnish churn going on? That’s part of why the pages that get purged
   are kept to a minimum (only page 1, none of the sub-pages for tags, cats, comments,
   etc).
 * There’s no automated purge. It’s all action based.

Viewing 1 replies (of 1 total)

The topic ‘Comment purging’ is closed to new replies.

 * ![](https://ps.w.org/varnish-http-purge/assets/icon-256x256.png?rev=3027185)
 * [Proxy Cache Purge](https://wordpress.org/plugins/varnish-http-purge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/varnish-http-purge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/varnish-http-purge/)
 * [Active Topics](https://wordpress.org/support/plugin/varnish-http-purge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/varnish-http-purge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/varnish-http-purge/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/comment-purging/#post-6350312)
 * Status: resolved