aboutsummaryrefslogtreecommitdiff
path: root/installation/nginx-cache-purge.sh.example
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-06-20 18:47:10 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-06-20 18:47:10 +0300
commitfb8775538bf4b6e0f705d29dba016d592d395ace (patch)
tree9a27aba4b9d79df6e4143acba8ac2994e721519b /installation/nginx-cache-purge.sh.example
parentae48af590507aff8b58429ee7bae70da26d2c4d8 (diff)
parent31761340fe7246ea9b57c0d0f7e61df85aa2af85 (diff)
downloadpleroma-fb8775538bf4b6e0f705d29dba016d592d395ace.tar.gz
Merge branch 'develop' into refactor/fe-bundles
Diffstat (limited to 'installation/nginx-cache-purge.sh.example')
-rwxr-xr-xinstallation/nginx-cache-purge.sh.example4
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 $@