summaryrefslogtreecommitdiff
path: root/installation/nginx-cache-purge.sh.example
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-09-10 16:02:11 -0500
committerMark Felder <feld@FreeBSD.org>2020-09-10 16:05:22 -0500
commit55562ca9362d66553ea3638c91174bbeb6c637f1 (patch)
treebb0b57d0a40dec779b0bfbfcbf65f3b9d3bea2b3 /installation/nginx-cache-purge.sh.example
parent39f7fc5b8ef781c98136d1f9be50a14bff394233 (diff)
parent6316350918d1f55167fa384d55f385ff2c93e6bb (diff)
downloadpleroma-55562ca9362d66553ea3638c91174bbeb6c637f1.tar.gz
pleroma-55562ca9362d66553ea3638c91174bbeb6c637f1.zip
Merge branch 'develop' into feature/gen-magic
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 $@