Index: engines/eacc.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/eacc.php,v
retrieving revision 1.1.2.12
diff -u -p -r1.1.2.12 eacc.php
--- engines/eacc.php	26 Dec 2008 02:23:54 -0000	1.1.2.12
+++ engines/eacc.php	26 Dec 2008 06:24:20 -0000
@@ -55,8 +55,9 @@ class eaccCache extends Cache {
    *   Returns TRUE on success or FALSE on failure
    */
   function set($key, $value, $expire = CACHE_PERMANENT, $headers = NULL) {
+    $ttl = $expire;
     if ($expire == CACHE_TEMPORARY) {
-      $expire = 180;
+      $ttl = 180;
     }
     // Create new cache object.
     $cache = new stdClass;
@@ -77,11 +78,11 @@ class eaccCache extends Cache {
         $lookup = array();
       }
 
-      // Set key to 1 so we can keep track of the bin
-      $lookup[$this->key($key)] = 1;
+      // Set key to $expire so we can keep track of the bin
+      $lookup[$this->key($key)] = $expire;
 
       // Attempt to store full key and value
-      if (!eaccelerator_put($this->key($key), serialize($cache), $expire)) {
+      if (!eaccelerator_put($this->key($key), serialize($cache), $ttl)) {
         unset($lookup[$this->key($key)]);
         $return = FALSE;
       }
