diff --git a/src/sammo/KVStorage.php b/src/sammo/KVStorage.php index 9539c773..51333d49 100644 --- a/src/sammo/KVStorage.php +++ b/src/sammo/KVStorage.php @@ -276,7 +276,10 @@ class KVStorage { $key = Util::valueFromEnum($key); - $this->cacheData->remove($key, null); + if($this->cacheData !== null){ + $this->cacheData->remove($key, null); + } + return $this->deleteDBValue($key); }