@@ -323,11 +323,6 @@ class BoardMapper extends DeckMapper implements IPermissionMapper {
|
|||||||
* Reset cache for a given board or a given user
|
* Reset cache for a given board or a given user
|
||||||
*/
|
*/
|
||||||
public function flushCache(?int $boardId = null, ?string $userId = null) {
|
public function flushCache(?int $boardId = null, ?string $userId = null) {
|
||||||
if ($boardId) {
|
|
||||||
unset($this->boardCache[$boardId]);
|
|
||||||
} else {
|
|
||||||
$this->boardCache = null;
|
|
||||||
}
|
|
||||||
if ($userId) {
|
if ($userId) {
|
||||||
unset($this->userBoardCache[$userId]);
|
unset($this->userBoardCache[$userId]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user