Skip to content

Commit

Permalink
lru-cache bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snehal Maid committed Jan 8, 2025
1 parent 691e3c4 commit 195ac9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engine-api/src/resolvers/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ setInterval(() => {

/* Periodically prune the cache of old engines */
setInterval(() => {
engineCache.reset();
dependencyCache.reset();
engineCache.clear();
dependencyCache.clear();
}, ENGINE_CACHE_RESET_INTERVAL);

/*
Expand Down
2 changes: 1 addition & 1 deletion engine-api/src/util/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ setInterval(() => {

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

/* API key validation & cache management */
Expand Down

0 comments on commit 195ac9f

Please sign in to comment.