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
+14
View File
@@ -0,0 +1,14 @@
[project]
name = "comfyui-tenaciousload"
description = "Fast ComfyUI loading behind an nginx cache, with an in-UI button to refresh model/LoRA lists."
version = "1.0.0"
license = { text = "MIT" }
dependencies = []
[project.urls]
Repository = "https://github.com/ethanfel/ComfyUI-Tenaciousload"
[tool.comfy]
PublisherId = "ethanfel"
DisplayName = "Tenaciousload"
Icon = ""