• Resolved zplitstonez

    (@zplitstonez)


    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://ww.wp.xz.cn/plugins/varnish-http-purge/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    (@zplitstonez)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    (@zplitstonez)

    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.