Skip to content

Comments

use diskcache library for caching#15287

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
diskcache
Mar 17, 2024
Merged

use diskcache library for caching#15287
AUTOMATIC1111 merged 1 commit intodevfrom
diskcache

Conversation

@AUTOMATIC1111
Copy link
Owner

Description

  • uses diskcache library for cache instead of a json file as it previously did
  • each subsection of cache (safetensors-metadata, hashes, extensions-git...) is its own diskcache.Cache object
  • uses SD_WEBUI_CACHE_DIR environment variable, defaults to cache directory
  • old json cache is automatically converted if it exists
  • the file for old cache is not removed for now, but is unused otherwise

Alternative to #12863. @w-e-w @akx @freecoderwaifu

@w-e-w
Copy link
Collaborator

w-e-w commented Mar 17, 2024

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants