From 548b5f8081ad1111f0e215008e140540fe51dab8 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Mar 2025 23:21:32 -0800 Subject: [PATCH] Fix: fix pi-hole cache expiration --- src/widgets/pihole/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/pihole/proxy.js b/src/widgets/pihole/proxy.js index bf24624d..95c9f995 100644 --- a/src/widgets/pihole/proxy.js +++ b/src/widgets/pihole/proxy.js @@ -28,7 +28,7 @@ async function login(widget, service) { logger.error("Failed to login to Pi-Hole API, status: %d", status); cache.del(`${sessionSIDCacheKey}.${service}`); } else { - cache.put(`${sessionSIDCacheKey}.${service}`, dataParsed.session.sid, dataParsed.session.validity); + cache.put(`${sessionSIDCacheKey}.${service}`, dataParsed.session.sid, dataParsed.session.validity * 1000); } }