diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2022-09-30 19:13:21 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2022-09-30 19:13:21 +0300 |
commit | bcb147e6055dc0db5676960ecfd6d9420a76082c (patch) | |
tree | 83205310bf44cddae96325c6d2fdd6b2509cc6b7 | |
parent | 583855461ba42796508e71817af105bc637ffdfa (diff) |
refresh cache on demandfix/noid/refresh-cache-on-demand
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/CirclesManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CirclesManager.php b/lib/CirclesManager.php index 6c92b896..6acbd69d 100644 --- a/lib/CirclesManager.php +++ b/lib/CirclesManager.php @@ -322,14 +322,14 @@ class CirclesManager { * @throws InitiatorNotFoundException * @throws RequestBuilderException */ - public function getCircles(?CircleProbe $probe = null): array { + public function getCircles(?CircleProbe $probe = null, bool $refreshCache = false): array { if (is_null($probe)) { $probe = new CircleProbe(); $probe->filterHiddenCircles() ->filterBackendCircles(); } - return $this->circleService->getCircles($probe, true); + return $this->circleService->getCircles($probe, !$refreshCache); } |