Question about cover cache retention time #1236
-
myMPD caches covers in /var/cache/mympd/covercache if an album directory does not contain a cover as picture file. This works perfectly well and substantially speeds up browsing in the album view. The documentation states: "myMPD housekeeps the covercache on startup and each day." and "You can disable the covercache by setting the covercache expiration value to 0 days." |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The max covercache value is 365. I do not know any disadvantages. There can be obsolete cache files remaining if you reorganize the music directory. I can add an option to disable the pruning of the cache. The fastest way for accessing covers should be to place the covers in the music directory and give myMPD access to it. |
Beta Was this translation helpful? Give feedback.
-
I see the option to disable cover cache pruning has been already added to 15.0.0 which is great. Additional questions: What timestamp is used when the housekeeping takes place? Ctime or atime? E.g. if I have 10 days set, is everything deleted that was created 10 days ago or those that have not been accessed for 10 days? I think the latter would be preferable. Can files from the cache be deleted manually while myMPD is running or only when it´s stopped? (Example: covercache pruning disabled and a cron job that deletes files with an access time older than 90 days). And an idea (just an idea, probably to costly to be feasible): |
Beta Was this translation helpful? Give feedback.
myMPD uses the mtime (modification time) for houskeeping. You can delete files from the cache while myMPD is running, the covercache pruning process does it the same way.
myMPD does not use atime, because atime is often disabled for performance reasons. As I know, ctime (creation time) value is not stored on linux filesystems.
I like the idea, but I am unsure if it is worth the work.