Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-09-30 19:13:21 +0300
committerMaxence Lange <maxence@artificial-owl.com>2022-09-30 19:13:21 +0300
commitbcb147e6055dc0db5676960ecfd6d9420a76082c (patch)
tree83205310bf44cddae96325c6d2fdd6b2509cc6b7
parent583855461ba42796508e71817af105bc637ffdfa (diff)
refresh cache on demandfix/noid/refresh-cache-on-demand
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/CirclesManager.php4
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);
}