Skip to content

Commit 195ac9f

Browse files
author
Snehal Maid
committed
lru-cache bug fix
1 parent 691e3c4 commit 195ac9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

engine-api/src/resolvers/engine.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ setInterval(() => {
201201

202202
/* Periodically prune the cache of old engines */
203203
setInterval(() => {
204-
engineCache.reset();
205-
dependencyCache.reset();
204+
engineCache.clear();
205+
dependencyCache.clear();
206206
}, ENGINE_CACHE_RESET_INTERVAL);
207207

208208
/*

engine-api/src/util/keys.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ setInterval(() => {
3333

3434
/* Periodically reset the cache in the event a key was deleted or the expriation date was reduced */
3535
setInterval(() => {
36-
cache.reset();
36+
cache.clear();
3737
}, APIKEY_CACHE_RESET_INTERVAL);
3838

3939
/* API key validation & cache management */

0 commit comments

Comments
 (0)