From bcd8ecd9ff970d417f661aa5106392fe595bd126 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 27 Jan 2013 17:12:01 +0100 Subject: [PATCH] Fixed Memcached implementation --- .../lib/system/cache/source/MemcachedCacheSource.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php index c7d9d07fd2..9dcac83e6b 100644 --- a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php @@ -141,7 +141,7 @@ class MemcachedCacheSource implements ICacheSource { * @see wcf\system\cache\source\ICacheSource::set() */ public function set(array $cacheResource, $value) { - $this->getAdapter()->getMemcached()->set($cacheResource['file'], $value, MEMCACHE_COMPRESSED, $cacheResource['maxLifetime']); + $this->getAdapter()->getMemcached()->set($cacheResource['file'], $value, $cacheResource['maxLifetime']); $this->addToLog($cacheResource['file']); } @@ -188,8 +188,5 @@ class MemcachedCacheSource implements ICacheSource { public function close() { // update log $this->updateLog(); - - // close connection - if ($this->getAdapter() !== null && $this->getAdapter()->getMemcached() !== null) $this->getAdapter()->getMemcached()->close(); } } -- 2.20.1