From 658d358e7012aa8e76187b1ecb31354766f9af5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 22 Mar 2022 15:12:41 +0100 Subject: [PATCH] Skip unavailable cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Db/BoardMapper.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Db/BoardMapper.php b/lib/Db/BoardMapper.php index a8eaa1c43..d4f0aba03 100644 --- a/lib/Db/BoardMapper.php +++ b/lib/Db/BoardMapper.php @@ -323,11 +323,6 @@ class BoardMapper extends DeckMapper implements IPermissionMapper { * Reset cache for a given board or a given user */ public function flushCache(?int $boardId = null, ?string $userId = null) { - if ($boardId) { - unset($this->boardCache[$boardId]); - } else { - $this->boardCache = null; - } if ($userId) { unset($this->userBoardCache[$userId]); } else {