• Resolved 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 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

    Thread Starter vigi

    (@vigi)

    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 Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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 https://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)

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    FYI since this time, I’ve added in filters to allow people to add in custom URLs

    https://github.com/Ipstenu/varnish-http-purge/wiki/Custom-Filters#add-urls-to-be-purged

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Purge user defined URL’ is closed to new replies.