2020-05-18 08:08:08 -04:00
|
|
|
#!/usr/bin/env bash
|
2019-01-21 14:20:38 -05:00
|
|
|
|
2019-05-14 15:33:48 -04:00
|
|
|
# Clean up cached files that are older than 4 days
|
|
|
|
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
|
2020-02-18 16:09:11 -05:00
|
|
|
find tmp/cache/webpack-dlls/ -maxdepth 1 -type d -mtime +4 -exec rm -rf -- "{}" \;
|
2019-01-21 14:20:38 -05:00
|
|
|
|
|
|
|
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"
|
2020-02-18 16:09:11 -05:00
|
|
|
du -d 0 -h tmp/cache/webpack-dlls | cut -f1 | xargs -I % echo "tmp/cache/webpack-dlls is currently %"
|