From: Hypolite Petovan Date: Thu, 19 Apr 2018 03:36:23 +0000 (-0400) Subject: Add hostname prefix in MemcachedCacheDriver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca4ca51c6a85cc60aaaa511be80daf8e2b8313fa;p=friendica.git Add hostname prefix in MemcachedCacheDriver --- diff --git a/src/Core/Cache/MemcachedCacheDriver.php b/src/Core/Cache/MemcachedCacheDriver.php index d6b8d4ad58..78a4a6bdfe 100644 --- a/src/Core/Cache/MemcachedCacheDriver.php +++ b/src/Core/Cache/MemcachedCacheDriver.php @@ -50,7 +50,7 @@ class MemcachedCacheDriver extends BaseObject implements ICacheDriver { // We store with the hostname as key to avoid problems with other applications return $this->memcached->set( - self::getApp()->get_hostname() . ":" . $key, + self::getApp()->get_hostname() . ':' . $key, $value, time() + $duration ); @@ -58,7 +58,9 @@ class MemcachedCacheDriver extends BaseObject implements ICacheDriver public function delete($key) { - return $this->memcached->delete($key); + $return = $this->memcached->delete(self::getApp()->get_hostname() . ':' . $key); + + return $return; } public function clear()