update the game list to retain filters in the url query params

This commit is contained in:
iamBadgers
2024-09-02 16:14:29 -07:00
parent cda4aa1b08
commit cae3f48063
3 changed files with 71 additions and 36 deletions

View File

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

View File

@@ -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
}