···9090 // TODO: This shouldn't have to be called here, since it's already
9191 // called by `Group::afterCommit`, but `Group::afterCommit` isn't
9292 // running in tests when creating/saving `Group`s.
9393- $this->resetCache();
9393+ $this->resetMemoized();
9494 }
95959696 return $group;
+1-1
app/Models/Group.php
···119119120120 public function afterCommit()
121121 {
122122- app('groups')->resetCache();
122122+ app('groups')->resetMemoized();
123123 }
124124125125 private function getColour(): ?string
···104104 // TODO: This shouldn't have to be called here, since it's already
105105 // called by `Group::afterCommit`, but `Group::afterCommit` isn't
106106 // running in tests when creating/saving `Group`s.
107107- app('groups')->resetCache();
107107+ app('groups')->resetMemoized();
108108 }
109109110110 $user->findUserGroup($group, true)->update(['playmodes' => $playmodes]);