sanger/sequencescape — pull request #950 by JamesGlover (2014-12-18 10:55:14+00:00)
Title: Use rake task to clean up Carrierwave cache

send_file works asynchronously, and as a result the file
can get cleaned up before it is even sent. Here we create
a rake task that uses the built in cleanup of carrierwave
that can be run as a daily cron.

NOTE: Remember to add daily cron to deployment