Initial commit: in-process object_info cache + refresh UI

ComfyUI-Tenaciousload speeds up ComfyUI page loads for large model/LoRA
collections by caching the slow /api/object_info response in memory and on
disk (survives restarts) and serving it gzipped in ~milliseconds, instead of
rebuilding it (and freezing the event loop) on every load.

Adds a "Refresh Models / LoRAs" menu button, a graph node, and a
POST /tenaciousload/refresh endpoint to rebuild the cache after adding or
removing models. No external dependencies; no nginx/docker required.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 00:25:41 +02:00
commit 2c1777ae4e
7 changed files with 377 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# ComfyUI-Tenaciousload has NO external dependencies.
# Everything it uses is either the Python standard library
# (os, gzip, json, logging, threading) or already provided by ComfyUI:
# - aiohttp (ComfyUI's web server, aiohttp>=3.11.8)
# - folder_paths, server (ComfyUI internal modules)
#
# Requirements to run:
# - ComfyUI (any recent version; tested on 0.23.0)
# - Python >= 3.8