Fix temporary ache disable

This commit is contained in:
2025-08-03 15:25:01 -06:00
parent 0eadd6e217
commit e456913233
5 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ namespace Core.Thalos.Provider.Providers.Onboarding
var cacheKey = CacheKeyHelper.GenerateCacheKey(this, "GetAllRoles");
var cachedData = await cacheProvider.GetAsync<IEnumerable<RoleAdapter>>(cacheKey) ?? [];
//if (cachedData.Any()) return cachedData;
if (cachedData.Any()) return cachedData;
var roles = await repository.AsQueryable();
await cacheProvider.SetAsync(cacheKey, roles, TimeSpan.FromMinutes(cacheSettings.DefaultCacheDurationInMinutes));