nginx-cache-purge
nginx-cache-purge copied to clipboard
Each file is greped twice
find $2 -maxdepth 1 -type d returns cache root directory and its subdirectories. The parallel grep process that is invoked with the root dir processes the whole cache, so the parallelization benefits are lost.
This can be fixed with -mindepth 1