Invalidation API in Varnish Administration Console

So, we’re getting somewhere.

Here is a quick example of the new ban(/purge/invalidation) distribution API we have in the development version of the Varnish Administration Console:

$ curl -X POST –user user:pw -H ‘Content-Type: text/plain’  -d ‘req.http.url ~ “/articles/FOO”‘ http://vac.local/api/v1/cachegroup/production/ban
{“status”:”200″,”text”:”Ban executed successfully”}

With this you can invalidate content on your N active Varnish servers with a simple HTTP request from the backend/CMS. Super easy!

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s