diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-06-30 15:09:03 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-06-30 15:09:03 -0500 |
commit | 0883a706dc376fdfb7de9df1366803e87c8e7c98 (patch) | |
tree | dc43f7b09dddd3300efd7b3ebbc0e82e60a978c5 /installation/nginx-cache-purge.sh.example | |
parent | 954acdda2072cac343409b3d17d831b86ac6a18c (diff) | |
parent | b9e6ad571ac5925431466d6e6b27c0b372bb7727 (diff) | |
download | pleroma-0883a706dc376fdfb7de9df1366803e87c8e7c98.tar.gz |
Merge branch 'develop' into activation-meta
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 $@ |