? wrong_table_flush.patch
Index: memcache.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/memcache/memcache.inc,v
retrieving revision 1.27
diff -u -p -r1.27 memcache.inc
--- memcache.inc	29 Jan 2008 23:43:34 -0000	1.27
+++ memcache.inc	15 Aug 2008 14:11:29 -0000
@@ -80,10 +80,13 @@ function cache_set($cid, $table = 'cache
  *   match. If '*' is given as $cid, the table $table will be emptied.
  */
 function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
+  // We cover the occassional explicit NULLs as well this way.
+  if (empty($table)) {
+    $table == 'cache';
+  }
   // Memcache logic is simpler because memcache doesn't have a minimum cache
   // lifetime consideration (it handles it internally), and doesn't support
   // wildcards.
-  $bin = empty($table) ? 'cache' : $table;
   if (empty($cid) || ($cid == '*' && $wildcard !== TRUE)) {
     // don't do anything if cid is unset. this matches the default drupal behavior...
     if ($wildcard && $cid != '*') {
