mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
PHRAS-197 #fix add possibility to override cache namespace
This commit is contained in:
@@ -79,7 +79,11 @@ class Manager
|
|||||||
$cache = $this->factory->create('array', array());
|
$cache = $this->factory->create('array', array());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($options['namespace']) && is_string($options['namespace'])) {
|
||||||
|
$cache->setNamespace($options['namespace']);
|
||||||
|
} else {
|
||||||
$cache->setNamespace(md5(gethostname().'-'.__DIR__));
|
$cache->setNamespace(md5(gethostname().'-'.__DIR__));
|
||||||
|
}
|
||||||
|
|
||||||
$this->drivers[$label] = $cache;
|
$this->drivers[$label] = $cache;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user