Title: Purging Clarification
Last modified: August 21, 2016

---

# Purging Clarification

 *  Resolved [zplitstonez](https://wordpress.org/support/users/zplitstonez/)
 * (@zplitstonez)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/)
 * Hi good day,
 * I just want to clarify what is being purged, this is found in the description
   of the plugin:
 * **Not all pages are purged every time, depending on your Varnish configuration.
   When a post, page, or custom post type is edited, or a new comment is added, 
   only the following pages will purge: **
    - The front page
    - The post/page edited
    - Any categories or tags associated with the page
 * I want to emphasize on the **“When a post, page or custom post type is edited”**—
   does this mean that literally as being EDITED? How about if i add a new post?
   What will happen then?
 * Also on the **“or a new comment is added” ** — will the whole cache be purged?
   or will it be specific only to the post that the new comment was added?
 * Thanks, hope I made my query clear.
 * Cheers for the wonderful plugin
 * [http://wordpress.org/plugins/varnish-http-purge/](http://wordpress.org/plugins/varnish-http-purge/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/#post-4539195)
 * Ah yes, I used ‘edited’ in the way WP does 🙂
 * So the flush happens on these calls:
 *     ```
       'save_post',
                   'deleted_post',
                   'trashed_post',
                   'edit_post',
                   'delete_attachment',
                   'switch_theme',
       ```
   
 * The ‘weird’ one is `edit_post` which:
 * > 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.
 * So that’s what I mean by edit 🙂
 * What this means for you? When a post is edited, the following pages are flushed:
 * Your ‘blog post’ page (like your home page, or if you have a static front page
   and a separate one to list blog posts, that one), your category page associated
   with the post, your tags page associated with the post, and the post page itself.
 * The only way to purge the WHOLE site is via the button on your dashboard. Otherwise
   it remains very selective to only the important related pages.
 * The switch-theme call SHOULD flush everything, mind you, since… well … theme 
   🙂 I used to do it on permalink-change as well, but apparently some poorly written
   plugins flush permalinks too often for that to be sensible :/
 *  Thread Starter [zplitstonez](https://wordpress.org/support/users/zplitstonez/)
 * (@zplitstonez)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/#post-4539238)
 * Hi Mika,
 * Thank you so much for clearing this up.
 * Your simple answer is pretty much straight to the point and i like it:
    **The
   only way to purge the WHOLE site is via the button on your dashboard. Otherwise
   it remains very selective to only the important related pages.**
 * I suggest you’d add it on your plugin description to help clarify things. You
   have a nicely, well created and intelligent plugin.
 * One last question Mika, i often modify the theme of my site most especially the
   CSS and JS file using EDIT FILE via SFTP. What should i do so that the changes
   i made in the CSS or JS file will reflect on the whole site once i upload it?
 * Cheers!
 *  Plugin Contributor [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/#post-4539241)
 * After you upload the CSS and JS, press the purge all button, or do a manual purge
   on the command line. That should cover it.
 * > In addition, your entire cache will be purged on the following actions:
   > Changing permalinks
   >  Changing themes Press the ‘flush cache’ button
 * That’s in the front age of the plugin, so … I don’t know how to make it more 
   obvious. Need to remove the permalinks bit, though, that’s wrong.
 *  Thread Starter [zplitstonez](https://wordpress.org/support/users/zplitstonez/)
 * (@zplitstonez)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/#post-4539251)
 * Thanks a lot Mika. God bless and more power!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Purging Clarification’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [zplitstonez](https://wordpress.org/support/users/zplitstonez/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/purging-clarification/#post-4539251)
 * Status: resolved