3.6.11 extend health time to decrease server presure

master
IoTcat 2 years ago
parent 10faa74d9c
commit 611ba98a8b
  1. 4
      dist/ushio-footer.js
  2. 2
      dist/ushio-footer.min.js
  3. 2
      dist/ushio-head.js
  4. 2
      dist/ushio-head.min.js
  5. 2
      package.json

@ -972,11 +972,11 @@ setInterval(()=>{
}
if(!page.window) return;
if(page.LastWindowOpenTime > new Date().valueOf() - 10000) SessionLastCntTime = page.LastWindowOpenTime;
if(new Date().valueOf() - SessionLastCntTime > 10000){
if(new Date().valueOf() - SessionLastCntTime > 40000){
console.log('Session unhealthy!!');
session_ajax_ini(session_errCnt++ % 2);
}
if(!session_ignore && new Date().valueOf() - SessionLastCntTime > 15000){
if(!session_ignore && new Date().valueOf() - SessionLastCntTime > 70000){
tips.question({
timeout: 9999999,
title: 'Warning',

File diff suppressed because one or more lines are too long

@ -39,7 +39,7 @@ if(typeof block_tips == "undefined"){
/* global default page config */
var page = {
version: 'v3.6.10',
version: 'v3.6.11',
url: window.location.href,
title: 'Lovely Ushio',
icon: 'https://cdn.yimian.xyz/img/head/head3r.ico',

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{
"name": "ushio-js",
"version": "3.6.10",
"version": "3.6.11",
"main": "ushio-head.js",
"repository": "https://github.com/iotcat/ushio-js",
"author": "iotcat <i@iotcat.me>",

Loading…
Cancel
Save