mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Remove obsolete cache reset
This commit is contained in:
parent
362e2093db
commit
c375b67b98
@ -26,6 +26,7 @@ class Cache {
|
||||
}
|
||||
|
||||
static loadCache(cacheFile) {
|
||||
cache = {};
|
||||
return new Promise((resolve, reject) => {
|
||||
if(cacheFile) {
|
||||
filePath = cacheFile;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user