Support » Plugin: Varnish HTTP Purge » Purge user defined URL

  • vigi

    (@vigi)


    Hi, I was wondering about a functionality for the plugin: a page with just a text box and a purge button, where the user can insert the URL to purge immediately using the plugin, instead of purging the whole varnish cache.

    I’m posting this because I have a wordpress installation with varnish and every time I need to purge varnish cache for a specific url I need to connect to the server using ssh, when a simple funcionality like the one I’m talking about could be very useful for doing the job.

    Do you think it worths developing it?

    Have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    What kind of page is this?

    You can purge an individual page by visiting the page while logged in and pressing the purge this page button.

    That said, it’s pretty rare someone needs to flush a random page, as any time a page is updated within WP, it’s dynamically flushed for you.

    Hi Mika, for example how can I flush the robots.txt or a url which is not a WordPress resource?

    Or how can I purge a js hotfix file whithout purging the cache of the whole site?

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Those are actually pretty rare edge cases, all things considered.

    Live hotfixes are rarely a great idea in the first place, and robots.txt can (and should) be managed by plugins (like YoastSEO) which result in auto-flushing.

    But. The current answer is “Via Command line.”

    wp varnish flush http://example.com/robots.txt

    I’ll think about the best way to add this in as a possibility, but in the case of a JS hotfix, you actually DO want to flush the WHOLE cache, to ensure all pages pick up the new JS (cache is … a pain)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.