This repo minimally reproduces the problem described in GitHub issue
-
Get the proxy and test backend app up and running:
docker compose up -d docker compose logs -f
-
Create 100 cache items in the proxy cache:
for ((i=0;i<100;++i)) do curl "http://localhost/category/cat-${i}" && echo done
-
Purge all cache items under
/category
using:docker compose exec proxy nginx-cache-purge p /cache 1:2 '/category/*'
-
List all cache items using:
docker compose exec proxy ls /cache
You should see that NOT all the cache items under /category
have been purged.