Enable disk cache by default

This commit is contained in:
Cohee
2025-03-19 22:45:26 +02:00
parent 1a2c54ce39
commit 0e2290dacf
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ performance:
# The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
memoryCacheCapacity: '100mb'
# Enables disk caching for character cards. Improves performances with large card libraries.
useDiskCache: false
useDiskCache: true
# Allow secret keys exposure via API
allowKeysExposure: false

View File

@@ -30,7 +30,7 @@ const memoryCache = new MemoryLimitedMap(memoryCacheCapacity);
const isAndroid = process.platform === 'android';
// Use shallow character data for the character list
const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean');
const useDiskCache = !!getConfigValue('performance.useDiskCache', false, 'boolean');
const useDiskCache = !!getConfigValue('performance.useDiskCache', true, 'boolean');
const diskCache = {
/**