This commit is contained in:
Sj-Si 2024-04-15 09:31:30 -04:00
parent b7a6df9460
commit 451190c7fc
3 changed files with 11 additions and 2 deletions

View file

@ -15,6 +15,9 @@
*/
/*eslint no-undef: "error"*/
// number of list html items to store in cache.
const EXTRA_NETWORKS_CLUSTERIZE_LRU_CACHE_SIZE = 1000;
class NotImplementedError extends Error {
constructor(...params) {
super(...params);
@ -72,7 +75,7 @@ class ExtraNetworksClusterize extends Clusterize {
if (this.lru instanceof LRUCache) {
this.lru.clear();
} else {
this.lru = new LRUCache();
this.lru = new LRUCache(EXTRA_NETWORKS_CLUSTERIZE_LRU_CACHE_SIZE);
}
await this.reinitData();