Remove obsolete cache reset

This commit is contained in:
haad 2016-05-06 16:28:36 +02:00
parent 362e2093db
commit c375b67b98
2 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,7 @@ class Cache {
} }
static loadCache(cacheFile) { static loadCache(cacheFile) {
cache = {};
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if(cacheFile) { if(cacheFile) {
filePath = cacheFile; filePath = cacheFile;

View File

@ -25,7 +25,6 @@ class Store {
use() { use() {
this.events.emit('load', this.dbname); this.events.emit('load', this.dbname);
this._oplog = new Log(this._ipfs, this.id, this.dbname, this.options); this._oplog = new Log(this._ipfs, this.id, this.dbname, this.options);
Cache.reset();
return Cache.loadCache(this.options.cacheFile).then(() => { return Cache.loadCache(this.options.cacheFile).then(() => {
const cached = Cache.get(this.dbname); const cached = Cache.get(this.dbname);
if(cached) { if(cached) {