projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b9d16
)
Apply suggestion to installation/nginx-cache-purge.sh.example
author
Maksim
<parallel588@gmail.com>
Wed, 20 May 2020 04:12:21 +0000
(
04:12
+0000)
committer
Maksim
<parallel588@gmail.com>
Wed, 20 May 2020 04:12:21 +0000
(
04:12
+0000)
installation/nginx-cache-purge.sh.example
patch
|
blob
|
history
diff --git
a/installation/nginx-cache-purge.sh.example
b/installation/nginx-cache-purge.sh.example
index aaa195324e95d4c8998d97f2e7ec4cfabb39eaec..b2915321ccbc62e09bead9a453836038f531343d 100755
(executable)
--- 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.