瀏覽代碼

Apply suggestion to installation/nginx-cache-purge.sh.example

chore/expose-invalidation-to-adminfe
Maksim 4 年之前
父節點
當前提交
376147fb82
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      installation/nginx-cache-purge.sh.example

+ 1
- 1
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.


Loading…
取消
儲存