? apc_fix_lock.patch
? apc_saving.patch
Index: engines/apc.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/apc.php,v
retrieving revision 1.5
diff -u -p -r1.5 apc.php
--- engines/apc.php	29 Aug 2008 19:42:41 -0000	1.5
+++ engines/apc.php	24 Oct 2008 12:30:01 -0000
@@ -69,9 +69,7 @@ class apcCache extends Cache {
       $cache->data = $value;
     }
 
-    if (!empty($key)) {
-      $this->lock();
-
+    if (!empty($key) && $this->lock()) {
       // Get lookup table to be able to keep track of bins
       $lookup = apc_fetch($this->lookup);
 
@@ -223,4 +221,4 @@ class apcCache extends Cache {
   function unlock() {
     return apc_delete($this->lock);
   }
-}
\ No newline at end of file
+}
