mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fixed issue with unnecessary duplicate indexeddb reads
This commit is contained in:
1 parent
3229ba4123
commit
01da0764b2
2 files changed
+15
-44
No files matched your search
@@ -116,12 +116,11 @@
|
||||
LOG('Collections Child Count has changed, invalidating cache');
|
||||
}
|
||||
|
||||
if (!invalidate && await cache.isCacheValid(CACHE_NAME)) {
|
||||
const currentCacheData = await cache.get(CACHE_NAME);
|
||||
if (!invalidate && currentCacheData != null) {
|
||||
LOG('Collections cache is still valid');
|
||||
return;
|
||||
}
|
||||
|
||||
const currentCacheData = await cache.get(CACHE_NAME);
|
||||
const hasExistingCache = Array.isArray(currentCacheData) && currentCacheData.length > 0;
|
||||
|
||||
if (state.populateInFlight) {
|
||||
|
||||
Reference in new issue
Block a user