Enable disk cache by default
| @@ -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: false | 146 | useDiskCache: true |
| 147 | 147 | ||
| 148 | # Allow secret keys exposure via API | 148 | # Allow secret keys exposure via API |
| 149 | allowKeysExposure: false | 149 | allowKeysExposure: false |
| @@ -30,7 +30,7 @@ const memoryCache = new MemoryLimitedMap(memoryCacheCapacity); | |||
| 30 | const isAndroid = process.platform === 'android'; | 30 | const isAndroid = process.platform === 'android'; |
| 31 | // Use shallow character data for the character list | 31 | // Use shallow character data for the character list |
| 32 | const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean'); | 32 | const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean'); |
| 33 | const useDiskCache = !!getConfigValue('performance.useDiskCache', false, 'boolean'); | 33 | const useDiskCache = !!getConfigValue('performance.useDiskCache', true, 'boolean'); |
| 34 | 34 | ||
| 35 | const diskCache = { | 35 | const diskCache = { |
| 36 | /** | 36 | /** |