oops, yes, sorry for my sloppy language. what you said is what i actually meant.
that was actually my original suggestion from a while back on how to purge the cache. it is fast and easy. it has the security issues that other contributors to this thread have brought up, but to me it still seems like a good solution.
what i am struggling with now is a way to manage my nginx configs and my cache paths so that i can run multiple wordpress installs in parallel and be able to purge them independently.
up to now, i have been storing the cache for all the sites in one cache directory which lets me set up a single fastcgi_cache set of directives in my http block of the main nginx.conf. since the cache key includes the hostname, it works fine in practice. the problem is that with this cleaner and simpler method of purging, any “full purge” is really a FULL purge – eliminating the entire cache for all the sites and that’s not what i really want.
so i am trying to come up with a clean scheme now to have separate cache directories for each site but not have to also write a full set of separate fastcgi_cache directives into the config for each separate site since the only thing that varies between them would be one element in the cache path and the name for the keys_zone. would be nice if there was a simple way to plop in a variable, but due to scope for variables and the fastcgi_cache directives in nginx configs, i can’t figure out how to do it.
anyone have any ideas or a working example?