diff --git a/backend/src/memcache.ts b/backend/src/memcache.ts index a80984f..9b91d9a 100644 --- a/backend/src/memcache.ts +++ b/backend/src/memcache.ts @@ -10,7 +10,9 @@ export class Memcache { readonly replaceCallback constructor(url: string) { - this.memcached = new Memcached(url, {}) + this.memcached = new Memcached(url, { + timeout: 30 + }) this.getCallback = promisify(this.memcached.get).bind(this.memcached) this.setCallback = promisify(this.memcached.set).bind(this.memcached) diff --git a/backend/src/rushstatsservice.ts b/backend/src/rushstatsservice.ts index 8ebb170..7cb55a2 100644 --- a/backend/src/rushstatsservice.ts +++ b/backend/src/rushstatsservice.ts @@ -78,7 +78,7 @@ export function addRushStatsApis(app, jsonParser, memcache) { let cachedResponse = await memcache.get('rolestats' + req.body.monthId) if (cachedResponse) { - console.log('cache hit') + console.info('cache hit - ' + 'rolestats' + req.body.monthId) res.send(cachedResponse) return } diff --git a/frontend/src/vues/GameList.vue b/frontend/src/vues/GameList.vue index 3e65f72..9ba131e 100644 --- a/frontend/src/vues/GameList.vue +++ b/frontend/src/vues/GameList.vue @@ -3,15 +3,16 @@