diff options
author | Maksim <parallel588@gmail.com> | 2020-05-20 04:12:21 +0000 |
---|---|---|
committer | Maksim <parallel588@gmail.com> | 2020-05-20 04:12:21 +0000 |
commit | 376147fb828a75b5000262a376cee173bfc98551 (patch) | |
tree | 972ecdd5074b08032f0938531f67c458baaf3fae | |
parent | b5b9d161cddd1b6650cde00cf0f3cbf56ab7a4a3 (diff) | |
download | pleroma-376147fb828a75b5000262a376cee173bfc98551.tar.gz |
Apply suggestion to installation/nginx-cache-purge.sh.example
-rwxr-xr-x | installation/nginx-cache-purge.sh.example | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installation/nginx-cache-purge.sh.example b/installation/nginx-cache-purge.sh.example index aaa195324..b2915321c 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 -ERl "^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. |