Trim the media cache to its cap instead of emptying it !31

merged merged by cmc on 2026-09-11 19:26 UTC · krz/skunky-art:fix/cache-rotation into main