On Wednesday, March 13, 2013 3:10:13 PM UTC-4, agentzh wrote:
My colleague Ray Bejjani has been working on an Nginx C module that
extends the ngx_lua module to expose a Lua API for manipulating the
http cache used by ngx_proxy. It's been a company project at
CloudFlare and he says he's going to opensource it.
I've cc'd Ray and I'll try to get him reply here
Yes, I'd love to hear more about this. It sounds like it might be ideal for our use case. In order to replicate, with nginx, the caching environment that we're currently using with Apache--which even there requires some custom changes to mod_cache and htcacheclean--I'm going to have to look at modifying the Cache Purge module so that it will support expiration and not just purging (deletion) of cache entries.
But if the ngx_proxy cache were manipulable in ngx_lua it would probably be trivial to implement the additional functionality that we need, without using the Cache Purge module at all.