diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 21:09:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 21:09:11 +0000 |
commit | 93d7441cc98c1db55797a2181a3d9f4b3d26d82c (patch) | |
tree | 72a7da7027a656239c2a40cfcef1db58238a2247 /scripts/clean-old-cached-assets | |
parent | 6b8d671de726534a03c18e025a586e1bc9c04a4f (diff) | |
download | gitlab-ce-93d7441cc98c1db55797a2181a3d9f4b3d26d82c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/clean-old-cached-assets')
-rwxr-xr-x | scripts/clean-old-cached-assets | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/clean-old-cached-assets b/scripts/clean-old-cached-assets index 8bdd3a9cdb6..9a373439e5e 100755 --- a/scripts/clean-old-cached-assets +++ b/scripts/clean-old-cached-assets @@ -2,5 +2,7 @@ # 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 %" |