-*- coding: utf-8 -*-
Changes with Apache 2.2.6
+ *) mod_cache: Remove expired content from cache that cannot be revalidated.
+ PR 30370. [Ruediger Pluem]
+
*) mod_proxy_http: accept proxy-sendchunked/proxy-sendchunks as synonymous.
PR 43183 [Brian Rectanus <Brian.Rectanus breach.com>, Vincent Bray]
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_cache: Remove expired content from cache that cannot be revalidated.
- PR 30370.
- Trunk version of patch:
- http://svn.apache.org/viewcvs.cgi?rev=481886&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, fielding, jim
-
* mod_mem_cache: Increase the minimum and default value for
MCacheMinObjectSize from 0 to 1, as a MCacheMinObjectSize of 0 does
not make sense and leads to a signal Floating point exception (8)
}
cache->stale_handle = h;
}
+ else {
+ int irv;
+
+ /*
+ * The copy isn't fresh enough, but we cannot revalidate.
+ * So it is the same case as if there had not been a cached
+ * entry at all. Thus delete the entry from cache.
+ */
+ irv = cache->provider->remove_url(h, r->pool);
+ if (irv != OK) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, irv, r->server,
+ "cache: attempt to remove url from cache unsuccessful.");
+ }
+ }
return DECLINED;
}