mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +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->setNamespace(md5(gethostname().'-'.__DIR__));
|
||||
if (isset($options['namespace']) && is_string($options['namespace'])) {
|
||||
$cache->setNamespace($options['namespace']);
|
||||
} else {
|
||||
$cache->setNamespace(md5(gethostname().'-'.__DIR__));
|
||||
}
|
||||
|
||||
$this->drivers[$label] = $cache;
|
||||
|
||||
|
Reference in New Issue
Block a user