Cleanup metodi e correzioni varie

This commit is contained in:
Samuele Locatelli
2026-06-01 07:27:48 +02:00
parent 2f4cead6e1
commit 8e7d08e4c9
11 changed files with 164 additions and 191 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ namespace MP.SPEC.Components
protected async Task FlushCache()
{
await MDService.FlushRedisCache();
await MDService.FlushCacheAsync();
await MDService.ForceFlushRedisCache();
await MDService.ForceFlushFusionCacheAsync();
await ForceReload();
// rimando a pagina corrente
NavManager.NavigateTo(NavManager.Uri, true);
+2 -3
View File
@@ -67,9 +67,8 @@ namespace MP.SPEC.Components
public async Task flushCache()
{
await Task.Delay(1);
await MDService.FlushRedisCache();
await Task.Delay(1);
await MDService.ForceFlushRedisCache();
await MDService.ForceFlushFusionCacheAsync();
// rimando a pagina corrente
NavManager.NavigateTo(NavManager.Uri, true);
}
+7 -5
View File
@@ -361,18 +361,20 @@ namespace MP.SPEC.Components
string odlPad = newOdl.IdxOdl.ToString(padCodXdl);
await callTask2Exe(selRec.IdxMacchina, "setComm", $"ODL{odlPad}");
await callTask2Exe(selRec.IdxMacchina, "setPzComm", $"{newOdl.NumPezzi}");
await Task.Delay(1);
// chiamo task x IOB
await callForceUpdate(selRec.IdxMacchina);
await Task.Delay(1);
await callForceUpdate(selRec.IdxMacchina);
//await Task.Delay(1);
//await callForceUpdate(selRec.IdxMacchina);
await Task.Delay(1);
await callSyncDb(selRec.IdxMacchina);
await Task.Delay(1);
// svuoto memorie pagina...
await MDService.FlushRedisCache();
await MDService.ForceFlushRedisCache();
// svuoto cache MpIoNsCache
await MDService.FlushMpIoOdlCache();
await MDService.FlushRedisCacheMpIoOdl();
// svuoto altra cache
await MDService.ForceFlushFusionCacheAsync();
// ricarico pagina!
NavManager.NavigateTo(NavManager.Uri, true);