--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On 13 March 2013 19:10, agentzh <age...@gmail.com> 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.
On 13 March 2013 22:50, Brian Akins <br...@akins.org> wrote:
I looked at writing a Lua interface to the standard nginx caches and found there are a ton of assumptions those modules make that didn't fit our use cases.
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.
On 14 March 2013 12:41, Brian Akins <br...@akins.org> wrote:
If we ever have an "openresty conference" or BoF at another
conference, I'd like to talk about some of the stuff we've been
playing with. Yeah I could do it in a blog post, but I'm lazy and an
openresty conference (or a general nginx conference or track at a
larger conference) would be very cool :)
I'll try to find the code, since that will likely be a better explanation than a long paragraph. In short, it let you read and set almost all of r->cache.