mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-01 05:11:19 -08:00
clean up
This commit is contained in:
parent
b7a6df9460
commit
451190c7fc
3 changed files with 11 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue