httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm MacCárthaigh" <>
Subject Adding purge/invalidation to mod_cache
Date Fri, 30 May 2008 08:28:15 GMT
For one reason or another, I need to be able to invalidate cache
entries in some mod_cache caches. There's no "good" standard for this,
WCIP/BEEP went nowhere afaict, but I want to keep things simple. The
way Squid handles this is by implementing a non-standard PURGE HTTP
method, so I've taken the same approach here - in a very basic patch.

The patch actually works, you can call;

PURGE /foo HTTP/1.1
Accept: foo/bar

and it will actually go and remove the item from whatever cache its
in, with the entity being negotiated as per the Accept headers.

But before I move on to tidying it up to return better codes, work
behind ACLs/auth,
handle the uncached case better and add a PurgeEnable directive (or
similar) - is this
style of invalidation something suitable for httpd at all? or would
people prefer to see
something more like mod_proxy_balancer's full-scale html interface for
doing this kind of thing at run-time?


View raw message