mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable disk cache by default
This commit is contained in:
@@ -143,7 +143,7 @@ performance:
|
|||||||
# The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
|
# The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
|
||||||
memoryCacheCapacity: '100mb'
|
memoryCacheCapacity: '100mb'
|
||||||
# Enables disk caching for character cards. Improves performances with large card libraries.
|
# Enables disk caching for character cards. Improves performances with large card libraries.
|
||||||
useDiskCache: false
|
useDiskCache: true
|
||||||
|
|
||||||
# Allow secret keys exposure via API
|
# Allow secret keys exposure via API
|
||||||
allowKeysExposure: false
|
allowKeysExposure: false
|
||||||
|
@@ -30,7 +30,7 @@ const memoryCache = new MemoryLimitedMap(memoryCacheCapacity);
|
|||||||
const isAndroid = process.platform === 'android';
|
const isAndroid = process.platform === 'android';
|
||||||
// Use shallow character data for the character list
|
// Use shallow character data for the character list
|
||||||
const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean');
|
const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean');
|
||||||
const useDiskCache = !!getConfigValue('performance.useDiskCache', false, 'boolean');
|
const useDiskCache = !!getConfigValue('performance.useDiskCache', true, 'boolean');
|
||||||
|
|
||||||
const diskCache = {
|
const diskCache = {
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user