mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Add Hours to show to the cache key (#7072)
This commit is contained in:
parent
f80bea27a9
commit
b4d34d9085
@ -99,7 +99,7 @@ export const getRecentWithCache = (
|
|||||||
let toFetchStartTime = startTime;
|
let toFetchStartTime = startTime;
|
||||||
let appendingToCache = false;
|
let appendingToCache = false;
|
||||||
|
|
||||||
let cache = stateHistoryCache[cacheKey];
|
let cache = stateHistoryCache[cacheKey + `_${cacheConfig.hoursToShow}`];
|
||||||
if (
|
if (
|
||||||
cache &&
|
cache &&
|
||||||
toFetchStartTime >= cache.startTime &&
|
toFetchStartTime >= cache.startTime &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user