From f5a2e67701c230573137620c38f0ab74b4594778 Mon Sep 17 00:00:00 2001 From: rakdos Date: Sun, 5 Sep 2021 13:30:08 +0200 Subject: [PATCH] Allow to switch cache strategy --- src/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration.php b/src/Configuration.php index dcc14f6..d3b230f 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -119,7 +119,7 @@ public function getLogger(): LogInterface public function getCache(): CacheInterface { - if (! $this->cache) + if (! $this->cache || get_class($this->cache) !== $this->configuration->cache) $this->cache = new $this->configuration->cache; return $this->cache;