fix error

This commit is contained in:
Mystikfluu 2022-10-04 21:39:06 +02:00
parent a4a0549738
commit 7f3aabf945

View File

@ -878,6 +878,9 @@ ejs.cache = new LRU({max:20})
const load_var_cache = new LRU({ const load_var_cache = new LRU({
max: 20, max: 20,
maxSize: 10000, maxSize: 10000,
sizeCalculation: (value, key) => {
return value.length
},
ttl: 1000 * 60, ttl: 1000 * 60,
allowStale: true, allowStale: true,
updateAgeOnGet: true, updateAgeOnGet: true,