Merge pull request #1123 from nlegoff/fix-197

[3.8.6][PHRAS-197] add possibility to override cache namespace
This commit is contained in:
Nicolas Le Goff
2014-07-25 18:11:37 +02:00

View File

@@ -79,7 +79,11 @@ class Manager
$cache = $this->factory->create('array', array());
}
if (isset($options['namespace']) && is_string($options['namespace'])) {
$cache->setNamespace($options['namespace']);
} else {
$cache->setNamespace(md5(gethostname().'-'.__DIR__));
}
$this->drivers[$label] = $cache;