From 783909649e675d177073bff039f3a9bd7e816350 Mon Sep 17 00:00:00 2001 From: swapnamol-abraham Date: Wed, 18 Jun 2025 11:42:43 +0100 Subject: [PATCH] For testing purpose commented the cache call. --- LearningHub.Nhs.WebUI/Services/UserGroupService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LearningHub.Nhs.WebUI/Services/UserGroupService.cs b/LearningHub.Nhs.WebUI/Services/UserGroupService.cs index 6a4f6296..03581cb3 100644 --- a/LearningHub.Nhs.WebUI/Services/UserGroupService.cs +++ b/LearningHub.Nhs.WebUI/Services/UserGroupService.cs @@ -47,7 +47,8 @@ public UserGroupService( public async Task> GetRoleUserGroupDetailAsync() { var cacheKey = $"{this.contextAccessor.HttpContext.User.Identity.GetCurrentUserId()}:AllRolesWithPermissions"; - return await this.cacheService.GetOrFetchAsync(cacheKey, () => this.FetchRoleUserGroupDetailAsync()); + ////return await this.cacheService.GetOrFetchAsync(cacheKey, () => this.FetchRoleUserGroupDetailAsync()); + return await this.FetchRoleUserGroupDetailAsync(); } ///