Inizio fix x errore trovato cache che NON FUNZIONA a dovere (va passato in REDIS lo store dei dati...)
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@
|
||||
</httpModules>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="CTRACK" />
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="C.TRACK" databaseId="1" />
|
||||
</providers>
|
||||
</sessionState>
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="error.html"/>
|
||||
|
||||
@@ -52,7 +52,6 @@ namespace C_TRACK.WebUserControls
|
||||
if (fatto)
|
||||
{
|
||||
Response.Redirect("Login");
|
||||
//Response.Redirect("Default");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace C_TRACK.WebUserControls
|
||||
// SE non sono in "safe page"
|
||||
if (memLayer.ML.CRS("_loginPages").ToLower().IndexOf(lastPage.ToLower()) < 0)
|
||||
{
|
||||
Response.Redirect("login");
|
||||
Response.Redirect("~/login");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+12
-5
@@ -88,8 +88,12 @@ namespace C_TRACK
|
||||
// Avvio...
|
||||
stopwatch.Start();
|
||||
traduciObj();
|
||||
#if false
|
||||
|
||||
// registro che i valori in cache sono scaduti...
|
||||
lastDataRefresh = DateTime.Now.AddDays(-1);
|
||||
|
||||
#endif
|
||||
numDD = memLayer.ML.CRI("numDD");
|
||||
cacheValSec = memLayer.ML.CRI("cacheValSec");
|
||||
// registro
|
||||
@@ -242,7 +246,7 @@ namespace C_TRACK
|
||||
memLayer.ML.setCacheVal("lastBCodeDataRead", value);
|
||||
if (logLevel > 5)
|
||||
{
|
||||
logger.lg.scriviLog("impostata validità cache");
|
||||
logger.lg.scriviLog("impostata validita cache");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -271,7 +275,8 @@ namespace C_TRACK
|
||||
get
|
||||
{
|
||||
Dictionary<string, string> answ = new Dictionary<string, string>();
|
||||
if (memLayer.ML.isInCacheObject("valoriAmmessiBCode") && cacheValida)
|
||||
bool valIncache = memLayer.ML.isInCacheObject("valoriAmmessiBCode");
|
||||
if (valIncache && cacheValida)
|
||||
{
|
||||
answ = (Dictionary<string, string>)memLayer.ML.objCacheObj("valoriAmmessiBCode");
|
||||
}
|
||||
@@ -280,6 +285,7 @@ namespace C_TRACK
|
||||
set
|
||||
{
|
||||
memLayer.ML.setCacheVal("valoriAmmessiBCode", value);
|
||||
lastDataRefresh = DateTime.Now;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -299,6 +305,7 @@ namespace C_TRACK
|
||||
set
|
||||
{
|
||||
memLayer.ML.setCacheVal("comandiAmmessiBCode", value);
|
||||
lastDataRefresh = DateTime.Now;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -475,7 +482,7 @@ namespace C_TRACK
|
||||
private void eseguiComando()
|
||||
{
|
||||
// in primis: sono in esecuzione, x cui il comando è valido...
|
||||
string msg2show = "";
|
||||
string msg2show = "";
|
||||
var testNumTask = Regex.Match(mod_barcode1.comandoRegistrato.valore, reNumTask);
|
||||
// verifico se cmd setup utente...
|
||||
if (mod_barcode1.comandoRegistrato.prevCmdIn == "RESOP")
|
||||
@@ -497,7 +504,7 @@ namespace C_TRACK
|
||||
CurrNumTask = "";
|
||||
// torno a pagina base...
|
||||
Response.Redirect("~/barcode");
|
||||
}
|
||||
}
|
||||
else if (mod_barcode1.comandoRegistrato.valore.Contains("OPR."))
|
||||
{
|
||||
// imposto operatore
|
||||
@@ -560,7 +567,7 @@ namespace C_TRACK
|
||||
dataLayer.man.taTR.insertQuery(CodOpr, CodPost, CurrNumTask, mod_barcode1.comandoRegistrato.prevCmdIn, DateTime.Now);
|
||||
// controllo se sia fase di CHIUSURA DEFINITIVA registro con INIZIO e FINE insieme e CHIUDO commessa...
|
||||
var rigaFase = dataLayer.man.taAF.getByKey(mod_barcode1.comandoRegistrato.prevCmdIn)[0];
|
||||
if(rigaFase.CloseTask)
|
||||
if (rigaFase.CloseTask)
|
||||
{
|
||||
// chiudo direttamente SIA fase che il TASK principale...
|
||||
dataLayer.man.taTL.updateClose(CurrNumTask, true);
|
||||
|
||||
Reference in New Issue
Block a user