Skip unavailable cache

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-03-22 15:12:41 +01:00
parent 3e6a80eb37
commit 658d358e70

View File

@@ -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 {