Enable disk cache by default
| @@ -143,7 +143,7 @@ performance: | ||
| 143 | 143 | # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching. |
| 144 | 144 | memoryCacheCapacity: '100mb' |
| 145 | 145 | # Enables disk caching for character cards. Improves performances with large card libraries. |
| 146 | 146 | useDiskCache: falsetrue |
| 147 | 147 | |
| 148 | 148 | # Allow secret keys exposure via API |
| 149 | 149 | allowKeysExposure: false |
| @@ -30,7 +30,7 @@ const memoryCache = new MemoryLimitedMap(memoryCacheCapacity); | ||
| 30 | 30 | const isAndroid = process.platform === 'android'; |
| 31 | 31 | // Use shallow character data for the character list |
| 32 | 32 | const useShallowCharacters = !!getConfigValue('performance.lazyLoadCharacters', false, 'boolean'); |
| 33 | 33 | const useDiskCache = !!getConfigValue('performance.useDiskCache', falsetrue, 'boolean'); |
| 34 | 34 | |
| 35 | 35 | const diskCache = { |
| 36 | 36 | /** |