mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-05 06:53:39 +01:00
Fix: fix pi-hole cache expiration
This commit is contained in:
parent
b466be684f
commit
548b5f8081
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user