aggiunta eliminazione da cache
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>WebDoorCreator - Egalware</i>
|
||||
<h4>Version: 0.9.2306.1310</h4>
|
||||
<h4>Version: 0.9.2306.1311</h4>
|
||||
<br /> Release note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2306.1310
|
||||
0.9.2306.1311
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2306.1310</version>
|
||||
<version>0.9.2306.1311</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.VisualBasic;
|
||||
using NLog;
|
||||
using StackExchange.Redis;
|
||||
using WebDoorCreator.Data.DTO;
|
||||
using WebDoorCreator.Data.Services;
|
||||
|
||||
@@ -96,7 +98,7 @@ namespace WebDoorCreator.API.Controllers
|
||||
* da riscrivere
|
||||
* - server record x cancellazione logica delle porte OK
|
||||
* - il record (boolean, toDelete...) indica azione richiesta OK
|
||||
* - si prendono TUTTE le porte da DB con toDelete == true ok
|
||||
* - si prendono TUTTE le porte da DB con toDelete == true OK
|
||||
* - si eliminano su REDIS dalle 4 code (req, processing, error, done)
|
||||
* - check delle code processing, SE ci sono record rimasti li cerco sul DB
|
||||
* - se NON ci sono sul db --> li elimino da processing
|
||||
@@ -107,6 +109,18 @@ namespace WebDoorCreator.API.Controllers
|
||||
|
||||
var doors2Del = await WDService.DoorGet2Del();
|
||||
|
||||
if(doors2Del != null)
|
||||
{
|
||||
foreach(var item in doors2Del)
|
||||
{
|
||||
|
||||
//RedisValue pattern = new RedisValue($"{Core.Constants.rKeyDoor}:{item.DoorId}");
|
||||
await WDService.FlushCustomPattern($"Cache:Door:{item.DoorId}");
|
||||
await WDService.FlushCustomPattern($"CalcRequest:CacheDDF:{item.DoorId}");
|
||||
await WDService.FlushCustomPattern($"CalcRequest:CacheSVG:{item.DoorId}");
|
||||
await WDService.FlushCustomPattern($"CalcRequest:Errors:{item.DoorId}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool fatto = await QDataServ.ResetQueueProcessing();
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.9.2306.1310</Version>
|
||||
<Version>0.9.2306.1311</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user