mod_socache_shmcb: Correct counting of expirations for status display.
Expirations happening during retrieval were not counted.
Submitted by: rjung
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1595918 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.10
+ *) mod_socache_shmcb: Correct counting of expirations for status display.
+ Expirations happening during retrieval were not counted. [Rainer Jung]
+
*) mod_cache: Retry unconditional request with the full URL (including the
query-string) when the origin server's 304 response does not match the
conditions used to revalidate the stale entry. [Yann Ylavic].
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_socache_shmcb: Correct counting of expirations for status display.
- Expirations happening during retrieval were not counted.
- trunk patch: http://svn.apache.org/r1595426
- 2.4.x patch: trunk works (modulo CHANGES)
- +1: rjung, trawick, ylavic
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
else {
/* Already stale, quietly remove and treat as not-found */
idx->removed = 1;
+ header->stat_expiries++;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00850)
"shmcb_subcache_retrieve discarding expired entry");
return -1;
else {
/* Already stale, quietly remove and treat as not-found */
idx->removed = 1;
+ header->stat_expiries++;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00856)
"shmcb_subcache_iterate discarding expired entry");
}