View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0018795 | MMW 5 | DB / Backup | public | 2022-01-31 22:27 | 2022-09-14 14:39 |
Reporter | peke | Assigned To | |||
Priority | high | Severity | tweak | Reproducibility | always |
Status | feedback | Resolution | open | ||
Target Version | 5.2 | ||||
Summary | 0018795: Restore DB: Restoring DB should Automatically clean MM cache | ||||
Description | Restoring DB (File -> Manage Database -> Restore) should Automatically clean MM cache as there is a risk that cached online Album art be assigned to different track. I have seen it only once or twice before today, but users never been able to disclose that fact and I saw it today where tracks that were looked for AA online and point to unsaved Image in preview window actually have embed AA in Tag. Only other thing that could happen is that MM pulled Image from iTunes even there was already AA in Tag (can't confirm, strange issue). | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
|
Revising what should be cleaned on database change and found that: 1) /Temp/Thumbs/ are saved per image data hash, so shouldn't be related to DB track ids 2) /Temp/Waveforms/ are per track id and thus might need to be cleaned once the restored database is totally different database (with different track ids) 3) /Temp/Transcoded_Media_Files/ are per track id, but currently are auto-cleaned per settings in Options > Media Sharing > Cache 4) /Temp/Cached_Cloud_Files/ currently aren't track id dependent and are auto cleaned per settings in Options > Player > Streaming > Maximum cache size 5) /Temp/AlbumImages/ 6) /Temp/ImageCache/ So potential candidates to clear once DB is replaced are 2, 3, 5, 6 But this should happen only once the DB is replaced by different DB (with another DB id) So my suggestion is to write last used DB id into persistent.json and once MM finds that the DB differs then it could run background task to clean the cache. But I don't think that this should be done automatically, but rather ask user something like: "MediaMonkey detected that different library database file is used, do you wish to clean cached files for the old database?" [Yes][No] |
|
Assigned to Rusty for review/wording suggestions. |