From b6e15defddbac35b62070f201d70ca06cd9045c9 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Tue, 7 May 2019 13:09:55 +0200 Subject: [PATCH] MOBILE-2992 forum: Fix can add discussion WS invalidation --- src/addon/mod/forum/providers/forum.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addon/mod/forum/providers/forum.ts b/src/addon/mod/forum/providers/forum.ts index 6bd80e7bd..4a8429e4a 100644 --- a/src/addon/mod/forum/providers/forum.ts +++ b/src/addon/mod/forum/providers/forum.ts @@ -58,7 +58,7 @@ export class AddonModForumProvider { * @return {string} Cache key. */ protected getCanAddDiscussionCacheKey(forumId: number, groupId: number): string { - return this.getCommonCanAddDiscussionCacheKey(forumId) + ':' + groupId; + return this.getCommonCanAddDiscussionCacheKey(forumId) + groupId; } /** @@ -68,7 +68,7 @@ export class AddonModForumProvider { * @return {string} Cache key. */ protected getCommonCanAddDiscussionCacheKey(forumId: number): string { - return this.ROOT_CACHE_KEY + 'canadddiscussion:' + forumId; + return this.ROOT_CACHE_KEY + 'canadddiscussion:' + forumId + ':'; } /**