? cacherouter/db.patch
? cacherouter/engines/db.patch
Index: cacherouter/engines/db.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/db.php,v
retrieving revision 1.2
diff -u -p -r1.2 db.php
--- cacherouter/engines/db.php	2 Jun 2008 01:30:08 -0000	1.2
+++ cacherouter/engines/db.php	17 Aug 2008 13:45:47 -0000
@@ -80,15 +80,14 @@ class dbCache extends Cache {
     }
   }
   
-  function flush() {
-    $this->content = array();
-    db_query("DELETE FROM {". $this->name ."} WHERE expire != %d AND expire < %d", CACHE_PERMANENT, time()); 
+  function flush($flush=null) {
+    if (!$flush){
+      $flush=time();
+	}
+    $this->content = array();
+    db_query("DELETE FROM {". $this->name ."} WHERE expire != %d AND expire < %d", CACHE_PERMANENT, $flush);
   }
 
-  function flush($flush) {
-    $this->content = array();
-    db_query("DELETE FROM {". $this->name ."} WHERE expire != %d AND expire < %d", CACHE_PERMANENT, $flush);
-  }
   
   function gc() {
     // Garbage collection necessary when enforcing a minimum cache lifetime
