diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-14 21:02:57 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-14 21:02:57 +0300 |
commit | 2e8a236cef28c0b754aecb04a5c60c3b7655c5a6 (patch) | |
tree | efba28e731bf9dcc57de2a20302179d9b210eefe /installation/nginx-cache-purge.sh.example | |
parent | f9dcf15ecb684b4b802d731a216448c76913d462 (diff) | |
download | pleroma-2e8a236cef28c0b754aecb04a5c60c3b7655c5a6.tar.gz pleroma-2e8a236cef28c0b754aecb04a5c60c3b7655c5a6.zip |
fix invalidates media url's
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 $@ |