Enable disk cache by default

0e2290dacf054c04e5e157bbf92fcd163e6690de

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -2Showing whitespace changes
default/config.yaml+1 -1
@@ -143,7 +143,7 @@ performance:
143 # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.143 # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
144 memoryCacheCapacity: '100mb'144 memoryCacheCapacity: '100mb'
145 # Enables disk caching for character cards. Improves performances with large card libraries.145 # Enables disk caching for character cards. Improves performances with large card libraries.
146 useDiskCache: false146 useDiskCache: true
147147
148# Allow secret keys exposure via API148# Allow secret keys exposure via API
149allowKeysExposure: false149allowKeysExposure: false
src/endpoints/characters.js+1 -1
@@ -30,7 +30,7 @@ const memoryCache = new MemoryLimitedMap(memoryCacheCapacity);
30const isAndroid = process.platform === 'android';30const isAndroid = process.platform === 'android';
31// Use shallow character data for the character list31// Use shallow character data for the character list
32const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean');32const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean');
33const useDiskCache = !!getConfigValue('performance.useDiskCache', false, 'boolean');33const useDiskCache = !!getConfigValue('performance.useDiskCache', true, 'boolean');
3434
35const diskCache = {35const diskCache = {
36 /**36 /**