From: Alexander Ebert Date: Sun, 27 Jan 2013 16:12:01 +0000 (+0100) Subject: Fixed Memcached implementation X-Git-Tag: 2.0.0_Beta_1~533^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcd8ecd9ff970d417f661aa5106392fe595bd126;p=GitHub%2FWoltLab%2FWCF.git Fixed Memcached implementation --- 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(); } }