diff options
Diffstat (limited to 'scripts/clean-old-cached-assets')
-rwxr-xr-x | scripts/clean-old-cached-assets | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/clean-old-cached-assets b/scripts/clean-old-cached-assets deleted file mode 100755 index 20889b7ffe6..00000000000 --- a/scripts/clean-old-cached-assets +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -# Clean up cached files that are older than 4 days -find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \; -find tmp/cache/webpack-dlls/ -maxdepth 1 -type d -mtime +4 -exec rm -rf -- "{}" \; - -du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %" -du -d 0 -h tmp/cache/webpack-dlls | cut -f1 | xargs -I % echo "tmp/cache/webpack-dlls is currently %" |