Add Hours to show to the cache key (#7072)

This commit is contained in:
Zack Barett 2020-09-21 06:15:07 -05:00 committed by GitHub
parent f80bea27a9
commit b4d34d9085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ export const getRecentWithCache = (
let toFetchStartTime = startTime;
let appendingToCache = false;
let cache = stateHistoryCache[cacheKey];
let cache = stateHistoryCache[cacheKey + `_${cacheConfig.hoursToShow}`];
if (
cache &&
toFetchStartTime >= cache.startTime &&