Purging images from the cache on Capistrano deployment
For some projects we use Imgix to optimise and cache images. That means we also need to purge them every time we deploy with Capistrano. Here’s how I automated this process with Capistrano and bash.