mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 21:44:54 -05:00
feat(nodes): invocation cache reports disabled if max size is 0
This commit is contained in:
committed by
Kent Keirsey
parent
7ac99d6bc3
commit
fa54974bff
@@ -17,8 +17,8 @@ export const useEnableInvocationCache = () => {
|
||||
});
|
||||
|
||||
const isDisabled = useMemo(
|
||||
() => cacheStatus?.enabled || !isConnected,
|
||||
[cacheStatus?.enabled, isConnected]
|
||||
() => cacheStatus?.enabled || !isConnected || cacheStatus?.max_size === 0,
|
||||
[cacheStatus?.enabled, cacheStatus?.max_size, isConnected]
|
||||
);
|
||||
|
||||
const enableInvocationCache = useCallback(async () => {
|
||||
|
||||
Reference in New Issue
Block a user