feat(templateMatcher): Рефакторинг, основной метод синхронизации GroupedTemplateSynchronizer разбит на отдельные классы; Неиспользуемые шаблоны теперь привязываются к ЭК КОСМПЛЕКСЫ-[ЗО].
This commit is contained in:
@@ -981,7 +981,7 @@ internal class UnitFilterService : IUnitFilterService
|
||||
// var cacheKey = cacheService.GetKey(new[] { "uf_ids", filter.UnitFilter }, isUseHash: true);
|
||||
var cacheKey = cacheService.GetKey(new[] { "unit filter", "unit name mask" }, new[] { filter.UnitFilter });
|
||||
|
||||
var cachedData = await cacheService.GetCachedDataAsync<UnitFilterIds>(cacheKey);
|
||||
var cachedData = await cacheService.GetCachedDataAsync<UnitFilterIds>(cacheKey, true);
|
||||
if (cachedData != null)
|
||||
{
|
||||
return cachedData.Data.UnitIds;
|
||||
@@ -998,7 +998,7 @@ internal class UnitFilterService : IUnitFilterService
|
||||
Source = GetType().Name
|
||||
};
|
||||
|
||||
await cacheService.SetCachedDataAsync(cacheKey, toCache, TimeSpan.FromHours(1));
|
||||
await cacheService.SetCachedDataAsync(cacheKey, toCache, TimeSpan.FromHours(1), true);
|
||||
|
||||
return initialUnitIds;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user