From c375b67b98e554e3bb88dac84d5b7a558de97792 Mon Sep 17 00:00:00 2001 From: haad Date: Fri, 6 May 2016 16:28:36 +0200 Subject: [PATCH] Remove obsolete cache reset --- src/oplog/Cache.js | 1 + src/stores/Store.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oplog/Cache.js b/src/oplog/Cache.js index 725ee16..bbb8371 100644 --- a/src/oplog/Cache.js +++ b/src/oplog/Cache.js @@ -26,6 +26,7 @@ class Cache { } static loadCache(cacheFile) { + cache = {}; return new Promise((resolve, reject) => { if(cacheFile) { filePath = cacheFile; diff --git a/src/stores/Store.js b/src/stores/Store.js index 0783331..3c7f9e6 100644 --- a/src/stores/Store.js +++ b/src/stores/Store.js @@ -25,7 +25,6 @@ class Store { use() { this.events.emit('load', this.dbname); this._oplog = new Log(this._ipfs, this.id, this.dbname, this.options); - Cache.reset(); return Cache.loadCache(this.options.cacheFile).then(() => { const cached = Cache.get(this.dbname); if(cached) {