From 7576d214d1fb1dea8afe0b307ea40f33c7ad5271 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 06 十月 2023 11:40:02 +0800 Subject: [PATCH] 2023-10-06 --- src/tabviews/custom/index.jsx | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index e4f0f5a..55cf1da 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -238,6 +238,15 @@ config.$cache = config.cacheLocal === 'true' config.$time = config.localCacheTime || 0 + if (window.GLOB.systemType !== 'production' && result.modifydate) { + let s = (new Date().getTime() - new Date(result.modifydate).getTime()) / (1000 * 60 * 60) + if (!isNaN(s) && s < 2) { + config.$cache = false + config.$time = 0 + config.cacheUseful = 'false' + } + } + let initInters = [] config.interfaces = this.formatInterSetting(config.interfaces, regs, MenuID, initInters) -- Gitblit v1.8.0