From aac1a2d5e9777709fb53658bcb12cac1e8059f06 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 14 Sep 2020 15:07:05 +0000 Subject: [PATCH] [Cache]: Add usage counts endpoints to long cache git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59363 d315682c-612b-4755-9ff5-7f18f6832af3 --- services/cache/mecache/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cache/mecache/cache.js b/services/cache/mecache/cache.js index e3e6adf1..228efa38 100644 --- a/services/cache/mecache/cache.js +++ b/services/cache/mecache/cache.js @@ -9,7 +9,7 @@ const URL = require('url'); const expireShort = 2 * 60 * 1000; //2mins const expireLong = 24 * 60 * 60 * 1000; //24 hours const cacheMaxSize =500; -const longCachingRequests = ["/communityFull/", "/pagehelpcontent","/provision/mvc/vocabularies/","/pages?page_route="]; +const longCachingRequests = ["/communityFull/", "/pagehelpcontent","/provision/mvc/vocabularies/","/pages?page_route=", "/allmetrics", "/countryusagestats/"]; let cors = require('cors'); app.use(cors());