From eca01709a56b39183c485d26a7290a0fe169581c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Tue, 16 Apr 2019 14:15:42 -0500 Subject: [PATCH] Testing to see if this will clear API file cache --- app/views/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/api.js b/app/views/api.js index 5f8c227..15fadf4 100644 --- a/app/views/api.js +++ b/app/views/api.js @@ -15,7 +15,7 @@ import headerSdk from "~component/api/header-sdk"; import redirects from "~data/redirects.json"; const blockchainApi = "https://cdn.jsdelivr.net/gh/lbryio/lbrycrd@master/contrib/devtools/generated/api_v1.json"; -const cache = new Map(); +const cacheBump = new Map(); const sdkApi = "https://cdn.jsdelivr.net/gh/lbryio/lbry@master/docs/api.json"; @@ -245,7 +245,7 @@ async function parseApiFile(urlSlug) { if (!apiFileLink) return Promise.reject(new Error("Failed to fetch API docs")); - const response = await got(apiFileLink, { cache: cache, json: true }); + const response = await got(apiFileLink, { cache: cacheBump, json: true }); try { return response.body;