Fixed Memcached implementation
authorAlexander Ebert <ebert@woltlab.com>
Sun, 27 Jan 2013 16:12:01 +0000 (17:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 27 Jan 2013 16:12:01 +0000 (17:12 +0100)
wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php

index c7d9d07fd2553f5c6ecd7a28ce864277299f5a9b..9dcac83e6b2ceebf41623bf5ee316f8e65d59683 100644 (file)
@@ -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();
        }
 }