diff --git a/index.js b/index.js index 9ec09088..9091236d 100644 --- a/index.js +++ b/index.js @@ -226,8 +226,8 @@ module.exports = { return this.metaCache[doctype]; }, - async getDoc(doctype, name) { - let doc = this.getDocFromCache(doctype, name); + async getDoc(doctype, name, options = {skipDocumentCache: false}) { + let doc = options.skipDocumentCache ? null : this.getDocFromCache(doctype, name); if (!doc) { doc = new (this.getDocumentClass(doctype))({ doctype: doctype,