mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-05-23 00:09:51 +02:00
fix: use path only for JsonCacheInfoRepository
JsonCacheInfoRepository assertion requires either path OR databaseName, not both. Using path only to ensure database is stored in persistent directory.
This commit is contained in:
@@ -51,8 +51,8 @@ class CoverCacheManager {
|
||||
_cacheKey,
|
||||
stalePeriod: _maxCacheAge,
|
||||
maxNrOfCacheObjects: _maxCacheObjects,
|
||||
// Store database in the same persistent directory
|
||||
repo: JsonCacheInfoRepository(databaseName: _cacheKey, path: _cachePath),
|
||||
// Use path only (not databaseName) to store database in persistent directory
|
||||
repo: JsonCacheInfoRepository(path: _cachePath),
|
||||
fileSystem: IOFileSystem(_cachePath!),
|
||||
fileService: HttpFileService(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user