From e8aadf8d2378ab022d04d230cb27e05fa51e2e36 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 27 Jun 2023 15:31:59 +0100 Subject: [PATCH] don't die with invalid cache DSN --- core/cacheengine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cacheengine.php b/core/cacheengine.php index 18c379cc..01a66f90 100644 --- a/core/cacheengine.php +++ b/core/cacheengine.php @@ -121,7 +121,8 @@ function loadCache(?string $dsn): CacheInterface ], ['prefix' => 'shm:']); $c = new \Naroga\RedisCache\Redis($redis); } - } else { + } + if(is_null($c)) { $c = new \Sabre\Cache\Memory(); } global $_tracer;