Skip to content

Commit

Permalink
FIX Use valid values for APCu version
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jul 12, 2024
1 parent 386ff5a commit 6a60f4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/Cache/ApcuCacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public function createPsr6(string $service, array $params = []): CacheItemPoolIn
$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(
Expand Down

0 comments on commit 6a60f4a

Please sign in to comment.