1 --- a/lib/Auth/LDAP.php 2 +++ b/lib/Auth/LDAP.php 3 @@ -1622,7 +1622,7 @@ 4 public function get_cache_data($key) 5 { 6 if ($cache = $this->get_cache()) { 7 - return $cache->get($ckey); 8 + return $cache->get($key); 9 } 10 } 11 12 @@ -1638,8 +1638,8 @@ 13 public function set_cache_data($key, $data, $ttl = 3600) 14 { 15 if ($cache = $this->get_cache()) { 16 - if (!$cache->replace($ckey, $data, MEMCACHE_COMPRESSED, $ttl)) { 17 - return $cache->set($ckey, $data, MEMCACHE_COMPRESSED, $ttl); 18 + if (!$cache->replace($key, $data, MEMCACHE_COMPRESSED, $ttl)) { 19 + return $cache->set($key, $data, MEMCACHE_COMPRESSED, $ttl); 20 } 21 else { 22 return true;