Clear caches once -- at the beginning of the commit -- so more writes can be queued behind it.
This commit is contained in:
@@ -434,7 +434,6 @@ MBTiles.prototype._commit = function(callback) {
|
|||||||
mbtiles.emit('commit');
|
mbtiles.emit('commit');
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
mbtiles._clearCaches();
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user