mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Use valid values for APCu version (#11304)
This commit is contained in:
parent
cfbf1ea90a
commit
d540877eed
@ -40,6 +40,9 @@ class ApcuCacheFactory extends AbstractCacheFactory implements InMemoryCacheFact
|
|||||||
$defaultLifetime = isset($params['defaultLifetime']) ? $params['defaultLifetime'] : 0;
|
$defaultLifetime = isset($params['defaultLifetime']) ? $params['defaultLifetime'] : 0;
|
||||||
// $version is optional - defaults to null.
|
// $version is optional - defaults to null.
|
||||||
$version = isset($params['version']) ? $params['version'] : Environment::getEnv('SS_APCU_VERSION');
|
$version = isset($params['version']) ? $params['version'] : Environment::getEnv('SS_APCU_VERSION');
|
||||||
|
if ($version === false) {
|
||||||
|
$version = null;
|
||||||
|
}
|
||||||
$useInjector = isset($params['useInjector']) ? $params['useInjector'] : true;
|
$useInjector = isset($params['useInjector']) ? $params['useInjector'] : true;
|
||||||
|
|
||||||
return $this->instantiateCache(
|
return $this->instantiateCache(
|
||||||
|
Loading…
Reference in New Issue
Block a user