FIX Use valid values for APCu version (#11304)

This commit is contained in:
Guy Sartorelli 2024-07-15 09:26:50 +12:00 committed by GitHub
parent cfbf1ea90a
commit d540877eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,9 @@ class ApcuCacheFactory extends AbstractCacheFactory implements InMemoryCacheFact
$defaultLifetime = isset($params['defaultLifetime']) ? $params['defaultLifetime'] : 0;
// $version is optional - defaults to null.
$version = isset($params['version']) ? $params['version'] : Environment::getEnv('SS_APCU_VERSION');
if ($version === false) {
$version = null;
}
$useInjector = isset($params['useInjector']) ? $params['useInjector'] : true;
return $this->instantiateCache(