mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Remove cache cleanup timeout in favour of cleaning on first pull from the cache.
This commit is contained in:
parent
cbb7228a78
commit
d47a9ae0a0
@ -359,15 +359,6 @@ class EmulatorJS {
|
||||
this.config.cacheConfig.cacheMaxAgeMins || 7200,
|
||||
this.debug
|
||||
);
|
||||
|
||||
// Run initial cleanup after cache initialization (non-blocking)
|
||||
setTimeout(async () => {
|
||||
try {
|
||||
await this.storageCache.cleanup();
|
||||
} catch (error) {
|
||||
console.error('[EJS Cache] Error during startup cleanup:', error);
|
||||
}
|
||||
}, 5000); // 5 second delay to avoid blocking startup
|
||||
|
||||
// This is not cache. This is save data
|
||||
this.storage.states = new window.EJS_STORAGE("EmulatorJS-states", "states");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user