• Resolved binarymoon

    (@binarymoon)


    Hi

    I’m using the varnish-http-purge plugin with DreamPress.

    If I press the ‘Purge Varnish Cache’ button on the WordPress dashboard then the cache doesn’t clear. However if I login via ssh and use the DreamPress instructions (using curl -X purge) to clear cache then it works as expected.

    Currently all I want to do is clear the theme cache. Specifically images and css. I tried using the css version number in wp_enqueue_styles but that didn’t have any effect (perhaps varnish on DreamPress is not configured to use query params?).

    Reading the docs it said that switching themes would also clear the cache, but that didn’t seem to work either.

    The theme is totally custom, and there’s no plugins running besides the default Dreampress ones.

    Hopefully I haven’t done anything stupid that’s stopping this from working properly ??

    I should add that this isn’t super urgent. It would be nice if it worked, but I’m happy to use ssh for the time being.

    Thanks

    https://www.ads-software.com/plugins/varnish-http-purge/

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

    (@ipstenu)

    ?????? Advisor and Activist

    Out of curiosity, does it work when you update a post or a page?

    I’ve seen this happen to one other person but he had a bajillion plugins, all of which were slaughtering things left and right.

    Thread Starter binarymoon

    (@binarymoon)

    The site I am working on doesn’t currently have a blog – it’s all pages – however I can add and edit pages just fine so I assume that’s working.

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Post/Page same idea here ??

    Okay, so that’s … kinda good. It means it IS running, just not the full purge. Since you’re command line savvy, can you press the purge button and then type this to see if it’s actually running the command?

    varnishlog -d -c -m RxURL:.*vhp_flush_all.*

    It dumps a whole mess of input, I know :/ The goal is to see if it’s actually sending the flush command. Assuming it is, get the TxHeader date:

    16 TxHeader c Date: Fri, 20 Dec 2013 00:23:34 GMT

    Then run this:

    varnishlog -d -c -m RxRequest:PURGE

    And grab the date too:

    20 TxHeader     c Date: Fri, 20 Dec 2013 00:23:33 GMT

    They SHOULD be within seconds of each other ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue clearing cache with the 'cache clear' button’ is closed to new replies.