cache: store all cached data under XDG_CACHE_HOME

Both cache.json (article list) and the images directory are
regeneratable from the server, so they belong in XDG_CACHE_HOME
(~/.cache/net.jeena.FeedTheMonkey/) rather than XDG_DATA_HOME.
This commit is contained in:
Jeena 2026-03-21 01:28:11 +00:00
parent fda441bebd
commit 8e21c80a33
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ use std::path::PathBuf;
use crate::model::Article;
fn images_dir() -> PathBuf {
glib::user_data_dir()
glib::user_cache_dir()
.join("net.jeena.FeedTheMonkey")
.join("images")
}