WordPress.org

Ready to get started?Download WordPress

Forums

Varnish HTTP Purge
[resolved] custom.css not purging (9 posts)

  1. daileycon
    Member
    Posted 9 months ago #

    Does the new Purge Varnish Cache button not purge css files? My theme uses a custom.css that I edit all the time (perfectionist) and I can't ever get it to purge. I have to wait all day for the changes to take effect.
    Thanks.

    http://wordpress.org/plugins/varnish-http-purge/

  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod
    Plugin Author

    Posted 9 months ago #

    You should press the 'purge all' button on the main admin dashboard.

    As the FAQ mentions, no, it doesn't purge CSS. Never has, probably never will, since that isn't content.

    Why doesn't my cache purge when I edit my theme?
    Because the plugin only purges your content when you edit it. That means if you edit a page/post, or someone leaves a comment, it'll change. Otherwise, you have to purge the whole cache. The plugin will do this for you if you change your theme, but not when you edit your theme.

    That said, if you use Jetpack's CSS editor, it will purge the whole cache on save.

  3. daileycon
    Member
    Posted 9 months ago #

    I'll try some curl then, according to DreamHost:

    $ curl -X PURGE "http://mydomain.com/wp-content/themes/mytheme/style\.css"

  4. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod
    Plugin Author

    Posted 9 months ago #

    That works too :)

    The plugin's just for content, as the logic behind it is we shouldn't be messing with our CSS that much. Not that I don't have the same problem. Command line will give you the best control for that :)

  5. daileycon
    Member
    Posted 9 months ago #

    Ok cool. Thanks Mika

  6. jptdesrosiers
    Member
    Posted 8 months ago #

    I know that technically Varnish has never purged CSS, but I was actually using it to do so.

    Since the latest WordPress update, or something, I can no longer use Varnish to purge my CSS. Is there any other way that I can do that? I've tried clearing my browser cache manually, but it isn't working at all.

  7. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod
    Plugin Author

    Posted 8 months ago #

    jptdesrosiers - This post is resolved, so generally you should NOT post in it but make a new one for yourself. :)

    That said, in the month since this was resolved, there is a Purge All button. However it only works if you have regex purging in Varnish.

  8. jptdesrosiers
    Member
    Posted 8 months ago #

    Oh shoot, so sorry!

    How do I get regex purging?!

  9. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod
    Plugin Author

    Posted 8 months ago #

    It has to be set up in your Varnish config. No idea how to do it myself :/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.