[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#376195: marked as done (mod_cache should update cache content when a request forces it to ignore the cache)



Your message dated Fri, 22 Jun 2007 15:30:47 +0200
with message-id <200706221530.47787.sf@sfritsch.de>
and subject line mod_cache should update cache content when a request forces it to ignore the cache
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2
Version: 2.0.54-5

Hello,

Apache should update the cache content when a request forces the cache
to be ignored.

A possible patch:

=========================
--- build-tree.orig/apache2/modules/experimental/mod_cache.c~   2005-04-11 12:47:03.000000000 -0300
+++ build-tree/apache2/modules/experimental/mod_cache.c 2006-06-30 14:45:09.000000000 -0300
@@ -121,6 +121,9 @@
             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                          "cache: no-cache or authorization forbids caching "
                          "of %s", url);
+           cache_remove_url(r, url);
+           ap_add_output_filter_handle(cache_save_filter_handle, NULL, r,
+                                       r->connection);
             return DECLINED;
         }
     }
=========================

This will remove the file from the cache and schedule recaching.

Thanks,

-- 
Gustavo Noronha Silva <gustavo.noronha@mds.gov.br>
Ministério do Desenvolvimento Social e Combate à Fome

Attachment: signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente


--- End Message ---
--- Begin Message ---
Version: 2.2.3-4

According to the changelog, this should be fixed in 2.2.x. Please 
reopen the bug report if it isn't.

--- End Message ---

Reply to: