diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-06-20 18:47:10 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-06-20 18:47:10 +0300 |
commit | fb8775538bf4b6e0f705d29dba016d592d395ace (patch) | |
tree | 9a27aba4b9d79df6e4143acba8ac2994e721519b /installation/nginx-cache-purge.sh.example | |
parent | ae48af590507aff8b58429ee7bae70da26d2c4d8 (diff) | |
parent | 31761340fe7246ea9b57c0d0f7e61df85aa2af85 (diff) | |
download | pleroma-fb8775538bf4b6e0f705d29dba016d592d395ace.tar.gz |
Merge branch 'develop' into refactor/fe-bundles
Diffstat (limited to 'installation/nginx-cache-purge.sh.example')
-rwxr-xr-x | installation/nginx-cache-purge.sh.example | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installation/nginx-cache-purge.sh.example b/installation/nginx-cache-purge.sh.example index b2915321c..5f6cbb128 100755 --- a/installation/nginx-cache-purge.sh.example +++ b/installation/nginx-cache-purge.sh.example @@ -13,7 +13,7 @@ CACHE_DIRECTORY="/tmp/pleroma-media-cache" ## $3 - (optional) the number of parallel processes to run for grep. get_cache_files() { local max_parallel=${3-16} - find $2 -maxdepth 2 -type d | xargs -P $max_parallel -n 1 grep -E Rl "^KEY:.*$1" | sort -u + find $2 -maxdepth 2 -type d | xargs -P $max_parallel -n 1 grep -E -Rl "^KEY:.*$1" | sort -u } ## Removes an item from the given cache zone. @@ -37,4 +37,4 @@ purge() { } -purge $1 +purge $@ |