MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / startCoreCacheSync

Function startCoreCacheSync

src/Data/CoreCacheSync.js:140–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140export function startCoreCacheSync() {
141 if (active) {
142 return stopCoreCacheSync;
143 }
144 active = true;
145 scheduleSync();
146 syncTimer = window.setInterval(scheduleSync, CACHE_EXPIRATION);
147 window.addEventListener("online", scheduleSync);
148 window.addEventListener(CACHE_CLEARED_EVENT, stopCoreCacheSync);
149 return stopCoreCacheSync;
150}
151
152export function stopCoreCacheSync() {
153 active = false;

Callers 1

StatusBlockFunction · 0.90

Calls 1

scheduleSyncFunction · 0.85

Tested by

no test coverage detected