support multiple media cache files

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-02-15 23:09:57 -05:00
parent 7c2b4775f1
commit 888a933e56
4 changed files with 17 additions and 5 deletions

View File

@@ -464,7 +464,9 @@ impl Damus {
let decks_cache = DecksCache::default();
let path = DataPath::new(&data_path);
let imgcache_dir = path.path(DataPathType::Cache).join(MediaCache::rel_dir());
let imgcache_dir = path
.path(DataPathType::Cache)
.join(MediaCache::rel_dir(notedeck::MediaCacheType::Image));
let _ = std::fs::create_dir_all(imgcache_dir.clone());
let debug = true;