Skip to content

Commit

Permalink
Added Cache Table deletion (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishvaas06 authored Oct 12, 2024
1 parent 31ce419 commit 663a740
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/functions/deleteCacheData.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ module.exports = (d) => {
);
}

cache.delete(cacheKey.addBrackets());
if (cacheKey) {
cache.delete(cacheKey.addBrackets());
} else {
for (const key of cache.keys()) {
cache.delete(key);
}
}

return {
code: d.util.setCode(data),
Expand Down

0 comments on commit 663a740

Please sign in to comment.