InvokeAI/invokeai/app
Martin Kristiansen a2613948d8
Feature/lru caching 2 (#4657)
* fix(nodes): do not disable invocation cache delete methods

When the runtime disabled flag is on, do not skip the delete methods. This could lead to a hit on a missing resource.

Do skip them when the cache size is 0, because the user cannot change this (must restart app to change it).

* fix(nodes): do not use double-underscores in cache service

* Thread lock for cache

* Making cache LRU

* Bug fixes

* bugfix

* Switching to one Lock and OrderedDict cache

* Removing unused imports

* Move lock cache instance

* Addressing PR comments

---------

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Co-authored-by: Martin Kristiansen <martin@modyfi.io>
2023-09-26 03:42:09 +00:00
..
api remove dangling debug statement 2023-09-25 19:30:41 -04:00
assets/images tweaks in response to psychedelicious review of PR 2023-07-26 15:27:04 +10:00
cli isort wip 2023-09-12 13:01:58 -04:00
invocations fix: Handle cases where tile size > image size 2023-09-22 17:30:12 -04:00
models feat(nodes): refactor parameter/primitive nodes 2023-08-16 09:54:38 +10:00
services Feature/lru caching 2 (#4657) 2023-09-26 03:42:09 +00:00
util fix: canvas not working on queue 2023-09-20 09:57:10 -04:00
api_app.py Removing logging import from api_api.py 2023-09-25 07:25:32 +10:00
cli_app.py Merge branch 'main' into refactor/rename-get-logger 2023-09-23 14:49:07 -07:00