mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
Fixed memcache & unittests
This commit is contained in:
parent
80a4e6263f
commit
065b83d148
4 changed files with 81 additions and 1 deletions
|
@ -111,6 +111,6 @@ class MemcacheCacheDriver extends AbstractCacheDriver implements IMemoryCacheDri
|
|||
public function add($key, $value, $ttl = Cache::FIVE_MINUTES)
|
||||
{
|
||||
$cachekey = $this->getCacheKey($key);
|
||||
return $this->memcache->add($cachekey, $value, $ttl);
|
||||
return $this->memcache->add($cachekey, serialize($value), MEMCACHE_COMPRESSED, $ttl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue