From 46e6bfc6a2cfdaccb64159cef8a48425e43ad039 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 1 Mar 2022 08:20:58 +0100 Subject: [PATCH] MOBILE-3833 core: Fix invalidateWsCacheForKeyStartingWith --- src/addons/mod/bigbluebuttonbn/components/index/index.ts | 4 +++- src/core/classes/site.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/addons/mod/bigbluebuttonbn/components/index/index.ts b/src/addons/mod/bigbluebuttonbn/components/index/index.ts index 5f1e648cb..69383338a 100644 --- a/src/addons/mod/bigbluebuttonbn/components/index/index.ts +++ b/src/addons/mod/bigbluebuttonbn/components/index/index.ts @@ -95,7 +95,9 @@ export class AddonModBBBIndexComponent extends CoreCourseModuleMainActivityCompo return; } - this.meetingInfo = await AddonModBBB.getMeetingInfo(this.bbb.id, this.groupId); + this.meetingInfo = await AddonModBBB.getMeetingInfo(this.bbb.id, this.groupId, { + cmId: this.module.id, + }); if (this.meetingInfo.statusrunning && this.meetingInfo.userlimit > 0) { const count = (this.meetingInfo.participantcount || 0) + (this.meetingInfo.moderatorcount || 0); diff --git a/src/core/classes/site.ts b/src/core/classes/site.ts index 0f5ace6b2..776cc58ac 100644 --- a/src/core/classes/site.ts +++ b/src/core/classes/site.ts @@ -1217,7 +1217,7 @@ export class CoreSite { await this.cacheTable.updateWhere({ expirationTime: 0 }, { sql: 'key LIKE ?', - sqlParams: [key], + sqlParams: [key + '%'], js: record => !!record.key?.startsWith(key), }); }