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

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