Aim

This repo minimally reproduces the problem described in GitHub issue

Usage

  1. Get the proxy and test backend app up and running:

    docker compose up -d
    docker compose logs -f
  2. Create 100 cache items in the proxy cache:

    for ((i=0;i<100;++i))
    do
      curl "http://localhost/category/cat-${i}" && echo
    done
  3. Purge all cache items under /category using:

    docker compose exec proxy nginx-cache-purge p /cache 1:2 '/category/*'
  4. 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.