From 7e003b1fd1c3bdb7848503497dc5615ee8961d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Maih=C3=B6fer?= Date: Tue, 27 Aug 2024 14:44:58 +0200 Subject: [PATCH] reload loop? --- shared/api/utils/shared_doc_util.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shared/api/utils/shared_doc_util.js b/shared/api/utils/shared_doc_util.js index ae87046..2595f0c 100644 --- a/shared/api/utils/shared_doc_util.js +++ b/shared/api/utils/shared_doc_util.js @@ -237,11 +237,12 @@ export default class SharedDocUtil extends SharedUtil } opDocs = this._opsUtil.addVersionInfoToOps(opDocs, true); - jsonfile.writeFileSync(this.opdocsFilename, { + const newCache = { "generated": Date.now(), "opDocs": opDocs - }); - // this.cachedOpDocs = opDocs; + }; + jsonfile.writeFileSync(this.opdocsFilename, newCache); + this.cachedOpDocs = newCache; let filteredOpDocs = []; if (filterDeprecated || filterOldVersions) {