nginx-cache-purge icon indicating copy to clipboard operation
nginx-cache-purge copied to clipboard

Each file is greped twice

Open wrr opened this issue 9 years ago • 0 comments

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

wrr avatar Oct 14 '16 09:10 wrr