mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 06:08:48 +00:00
Fix: fix pi-hole cache expiration
This commit is contained in:
parent
b466be684f
commit
548b5f8081
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue