FRiCKLE/ngx_cache_purge — Issue #5: Clearing cache with wild card
Author: attiks
Created: 2011-11-02 21:21:04+00:00
State: open

Disclaimer: I read the TODO, but maybe this use case is supported
nginx.conf
fastcgi_cache_key "$host$key_uri$cookie_OctopusCacheID";

so the cache gets keys like
example.com/page-1 # anonymous user / no cookie
example.com/page-1BONDfaa020008474173563121e9163e7cac3 # authenticated user / cookie

For the purge we execute
curl --verbose --header 'Host:example.com' 'http://127.0.0.1:8888/purge/page-1'

But does only clear the first key, not the second one, so to make a long story short, can we do something like
curl --verbose --header 'Host:example.com' 'http://127.0.0.1:8888/purge/page-1**'