mirror of
https://github.com/friendica/friendica
synced 2025-04-22 14:30:12 +00:00
Fix config value type in MemcachedCacheDriver
- Remove default config values set in CacheDriverFactory
This commit is contained in:
parent
dfa461b3bc
commit
7b8efcc23d
2 changed files with 8 additions and 6 deletions
|
@ -41,7 +41,9 @@ class MemcachedCacheDriver extends AbstractCacheDriver implements IMemoryCacheDr
|
|||
$this->memcached = new Memcached();
|
||||
|
||||
array_walk($memcached_hosts, function (&$value) {
|
||||
$value = array_map('trim', explode(',', $value));
|
||||
if (is_string($value)) {
|
||||
$value = array_map('trim', explode(',', $value));
|
||||
}
|
||||
});
|
||||
|
||||
$this->memcached->addServers($memcached_hosts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue