[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
This commit is contained in:
k.triantafyllou 2020-09-14 15:07:05 +00:00
parent a7dada87c2
commit aac1a2d5e9
1 changed files with 1 additions and 1 deletions

View File

@ -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());