feat(PingServices): add cache refresh option to fetchPingServices function and update tooltip for manual refresh
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 4m3s

This commit is contained in:
2026-02-22 21:31:07 +07:00
parent fbd740aef7
commit 800f94354b
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -488,7 +488,8 @@ async function getPingServices(req, res) {
const cacheKey = cacheSeconds > 0
? PING_SERVICES_CACHE_KEY_PREFIX + (viaRouter ? 'router' : 'web') + '_' + String(serverId || '').replace(/[^a-zA-Z0-9.-]/g, '_') + '_' + String(gatewayIp || '').replace(/[^a-zA-Z0-9.]/g, '_')
: null;
if (cacheKey) {
const skipCache = ['1', 'true', 'yes'].includes(String(req.query?.refresh || req.query?.nocache || '').toLowerCase());
if (cacheKey && !skipCache) {
try {
const raw = await readS3TextObject(cacheKey).catch(() => null);
if (raw?.body) {