MOBILE-3833 core: Fix invalidateWsCacheForKeyStartingWith
parent
8600f741bb
commit
46e6bfc6a2
|
@ -95,7 +95,9 @@ export class AddonModBBBIndexComponent extends CoreCourseModuleMainActivityCompo
|
||||||
return;
|
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) {
|
if (this.meetingInfo.statusrunning && this.meetingInfo.userlimit > 0) {
|
||||||
const count = (this.meetingInfo.participantcount || 0) + (this.meetingInfo.moderatorcount || 0);
|
const count = (this.meetingInfo.participantcount || 0) + (this.meetingInfo.moderatorcount || 0);
|
||||||
|
|
|
@ -1217,7 +1217,7 @@ export class CoreSite {
|
||||||
|
|
||||||
await this.cacheTable.updateWhere({ expirationTime: 0 }, {
|
await this.cacheTable.updateWhere({ expirationTime: 0 }, {
|
||||||
sql: 'key LIKE ?',
|
sql: 'key LIKE ?',
|
||||||
sqlParams: [key],
|
sqlParams: [key + '%'],
|
||||||
js: record => !!record.key?.startsWith(key),
|
js: record => !!record.key?.startsWith(key),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue