PR: 30370
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@481886
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[Remove entries to the current 2.0 and 2.2 section below, when backported]
+ *) mod_cache: Remove expired content from cache that cannot be revalidated.
+ PR 30370. [Ruediger Pluem]
+
*) mod_dbd: Stash DBD connections in request_config of initial request
only, or else sub-requests and internal redirections may cause
entire DBD pool to be stashed in a single HTTP request. [Chris Darroch]
}
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;
}