diff options
author | feld <feld@feld.me> | 2020-06-19 20:38:22 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2020-06-19 20:38:22 +0000 |
commit | f9282677731cca96a1316e2830507837535c06e0 (patch) | |
tree | 27e04af4e4fac3e4ed53a653bd1ec293f48410a3 /installation/nginx-cache-purge.sh.example | |
parent | 436bb0cd12825b3202a46dbc04cd063935e40344 (diff) | |
parent | 4044f24e2e4935757e038e7f06373ed1c9172560 (diff) | |
download | pleroma-f9282677731cca96a1316e2830507837535c06e0.tar.gz pleroma-f9282677731cca96a1316e2830507837535c06e0.zip |
Merge branch 'issue/1855' into 'develop'
#1855 MediaProxy cache invalidation via Admin API
See merge request pleroma/pleroma!2648
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 $@ |