On 02/13/2011 03:03 AM, [email protected] wrote: > Author: minfrin > Date: Sun Feb 13 02:03:29 2011 > New Revision: 1070179 > > URL: http://svn.apache.org/viewvc?rev=1070179&view=rev > Log: > mod_cache: When a request other than GET or HEAD arrives, we must > invalidate existing cache entities as per RFC2616 13.10. PR 15868. > > Modified: > httpd/httpd/trunk/CHANGES > httpd/httpd/trunk/docs/manual/mod/mod_cache.xml > httpd/httpd/trunk/modules/cache/cache_storage.c > httpd/httpd/trunk/modules/cache/cache_storage.h > httpd/httpd/trunk/modules/cache/mod_cache.c > httpd/httpd/trunk/modules/cache/mod_cache.h >
> Modified: httpd/httpd/trunk/modules/cache/cache_storage.c > URL: > http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_storage.c?rev=1070179&r1=1070178&r2=1070179&view=diff > ============================================================================== > --- httpd/httpd/trunk/modules/cache/cache_storage.c (original) > +++ httpd/httpd/trunk/modules/cache/cache_storage.c Sun Feb 13 02:03:29 2011 > @@ -389,6 +389,53 @@ int cache_select(cache_request_rec *cach > return DECLINED; > } > > +/* > + * invalidate a specific URL entity in all caches > + * > + * All cached entities for this URL are removed, usually in > + * response to a POST/PUT or DELETE. > + * > + * This function returns OK if at least one entity was found and > + * removed, and DECLINED if no cached entities were removed. > + */ > +int cache_invalidate(cache_request_rec *cache, request_rec *r) Why not adjusting cache_remove_url accordingly? It does nearly the same and has the same prototype. Regards RĂ¼diger
