diff options
author | Joas Schilling <coding@schilljs.com> | 2019-08-21 09:12:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-08-21 09:16:14 +0200 |
commit | 23bd4c127d7b7be9cc361da8183aefddf96d1be6 (patch) | |
tree | d967b4211b590a06bf9f58a3963553a89d0d52d9 /lib/private/Collaboration/Resources | |
parent | b53283fcb74817a2f840ba9158314875d536e29c (diff) | |
download | nextcloud-server-23bd4c127d7b7be9cc361da8183aefddf96d1be6.tar.gz nextcloud-server-23bd4c127d7b7be9cc361da8183aefddf96d1be6.zip |
Add a repair step to clear the projects access cache
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration/Resources')
-rw-r--r-- | lib/private/Collaboration/Resources/Manager.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 113a6268289..ef369b18fe3 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/lib/private/Collaboration/Resources/Manager.php @@ -464,6 +464,14 @@ class Manager implements IManager { } } + public function invalidateAccessCacheForAllCollections(): void { + $query = $this->connection->getQueryBuilder(); + + $query->delete(self::TABLE_ACCESS_CACHE) + ->where($query->expr()->neq('collection_id', $query->createNamedParameter(0))); + $query->execute(); + } + public function invalidateAccessCacheForCollection(ICollection $collection): void { $query = $this->connection->getQueryBuilder(); |