httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r454723 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Tue, 10 Oct 2006 12:47:50 GMT
Author: niq
Date: Tue Oct 10 05:47:50 2006
New Revision: 454723

URL: http://svn.apache.org/viewvc?view=rev&rev=454723
Log:
Fix bugs pointed out by rpluem in rewritemap/dbd

Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?view=diff&rev=454723&r1=454722&r2=454723
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Tue Oct 10 05:47:50 2006
@@ -1658,7 +1658,7 @@
      * SQL map with cache
      */
     case MAPTYPE_DBD_CACHE:
-        value = get_cache_value(s->cachename, st.mtime, key, r->pool);
+        value = get_cache_value(s->cachename, 0, key, r->pool);
         if (!value) {
             rewritelog((r, 6, NULL,
                         "cache lookup FAILED, forcing new map lookup"));
@@ -1667,13 +1667,14 @@
             if (!value) {
                 rewritelog((r, 5, NULL, "SQL map lookup FAILED: map %s key=%s",
                             name, key));
+                set_cache_value(s->cachename, 0, key, "");
                 return NULL;
             }
 
             rewritelog((r, 5, NULL, "SQL map lookup OK: map %s key=%s, val=%s",
                         name, key, value));
 
-            set_cache_value(s->cachename, st.mtime, key, value);
+            set_cache_value(s->cachename, 0, key, value);
             return value;
         }
 



Mime
View raw message