summaryrefslogtreecommitdiff
path: root/scripts/clean-old-cached-assets
blob: 7a3a62a477a66609c2b41cbb270470eb37adc45a (plain)
1
2
3
4
5
6
#!/bin/bash

# Clean up cached files that are older than 1 week
find tmp/cache/assets/sprockets/ -type f -mtime +7 -execdir rm -- "{}" \;

du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"