diff options
author | lain <lain@soykaf.club> | 2020-06-20 09:33:18 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-20 09:33:18 +0000 |
commit | 7d542450b13742c6efa93246c172c8306e730d50 (patch) | |
tree | 86998336bba747f1ce605a1c06e39ac96f38b396 /installation/nginx-cache-purge.sh.example | |
parent | 4733f6a3371504ebb3eeb447d7c20d56c10b43bf (diff) | |
parent | f9282677731cca96a1316e2830507837535c06e0 (diff) | |
download | pleroma-7d542450b13742c6efa93246c172c8306e730d50.tar.gz pleroma-7d542450b13742c6efa93246c172c8306e730d50.zip |
Merge branch 'develop' into '1865-media-only'
# Conflicts:
# CHANGELOG.md
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 $@ |