Fix: fix pi-hole cache expiration

This commit is contained in:
shamoon 2025-03-03 23:21:32 -08:00
parent b466be684f
commit 548b5f8081
No known key found for this signature in database

View File

@ -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);
}
}