Hi,

if you use CacheRoot which does not exist or where httpd does not have
permissions to write, then the caching does not work and there is no
error message in log in this case.

This makes detection of this situation and further debugging harder,
because to find out what's going on, you have to set LogLevel to debug.

I think mod_cache should log message 00765 with ERR log level instead of
DEBUG (attached patch does that) or new mod_cache_disk log message should
be added to address this particular error.

Regards,
Jan Kaluza
Index: modules/cache/mod_cache.c
===================================================================
--- modules/cache/mod_cache.c	(revision 1439320)
+++ modules/cache/mod_cache.c	(working copy)
@@ -656,7 +656,7 @@
 
         rv = cache->provider->store_body(cache->handle, f->r, in, cache->out);
         if (rv != APR_SUCCESS) {
-            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv, f->r, APLOGNO(00765)
+            ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, f->r, APLOGNO(00765)
                     "cache: Cache provider's store_body failed!");
             ap_remove_output_filter(f);
 

Reply via email to