Skip to content

Commit

Permalink
Fix: really clear the caches
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jun 15, 2024
1 parent f65377e commit da4924b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/cache_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ static int crop_dir(sds cache_basedir, const char *type, int keepdays);
* @param config pointer to static config
*/
void cache_disk_clear(struct t_config *config) {
crop_dir(config->cachedir, DIR_CACHE_COVER, config->cache_cover_keep_days);
crop_dir(config->cachedir, DIR_CACHE_LYRICS, config->cache_lyrics_keep_days);
crop_dir(config->cachedir, DIR_CACHE_THUMBS, config->cache_thumbs_keep_days);
crop_dir(config->cachedir, DIR_CACHE_MISC, config->cache_misc_keep_days);
crop_dir(config->cachedir, DIR_CACHE_COVER, 0);
crop_dir(config->cachedir, DIR_CACHE_LYRICS, 0);
crop_dir(config->cachedir, DIR_CACHE_THUMBS, 0);
crop_dir(config->cachedir, DIR_CACHE_MISC, 0);
}

/**
Expand Down

0 comments on commit da4924b

Please sign in to comment.