Welcome to mirror list, hosted at ThFree Co, Russian Federation.

clean-old-cached-assets « scripts - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8bdd3a9cdb6d4b938657f6ef3dd03de32ad429a9 (plain)
1
2
3
4
5
6
#!/bin/bash

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

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