[PR #632] [MERGED] Add clear cache button #635

Closed
opened 2026-02-28 14:33:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jpochyla/psst/pull/632
Author: @jacksongoode
Created: 6/13/2025
Status: Merged
Merged: 6/13/2025
Merged by: @jacksongoode

Base: mainHead: jackson/clear-cache-button


📝 Commits (2)

  • de2464b Add a button to clear the cache, simplify cache estimation/creation
  • 36922bc Add tag

📊 Changes

7 files changed (+131 additions, -74 deletions)

View changed files

📝 .github/workflows/build.yml (+1 -0)
📝 psst-core/src/cache.rs (+28 -5)
📝 psst-gui/src/data/config.rs (+3 -1)
📝 psst-gui/src/data/mod.rs (+1 -0)
📝 psst-gui/src/main.rs (+15 -2)
📝 psst-gui/src/ui/preferences.rs (+82 -63)
📝 psst-gui/src/webapi/client.rs (+1 -3)

📄 Description

This let's a user clear the cache.

https://github.com/user-attachments/assets/e9ba09fb-5453-4cb0-beca-cf7bf263bfb7

While I made this I realize the cache dirs are a little inconsistent.

❯ ls
album/           audio/           images/          related-artists/ TrackLines/
artist-info/     episode/         key/             track/           User_info/

We should update the user info and track lines ones. Also we should maybe just clear the whole dir and make all the caches handle the folder creation. But these seem like a separate PR.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jpochyla/psst/pull/632 **Author:** [@jacksongoode](https://github.com/jacksongoode) **Created:** 6/13/2025 **Status:** ✅ Merged **Merged:** 6/13/2025 **Merged by:** [@jacksongoode](https://github.com/jacksongoode) **Base:** `main` ← **Head:** `jackson/clear-cache-button` --- ### 📝 Commits (2) - [`de2464b`](https://github.com/jpochyla/psst/commit/de2464b255ee87875e4b98edb4a290caecc39286) Add a button to clear the cache, simplify cache estimation/creation - [`36922bc`](https://github.com/jpochyla/psst/commit/36922bc9bee7a4bce6550b2aae32b50d606a0ce0) Add tag ### 📊 Changes **7 files changed** (+131 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+1 -0) 📝 `psst-core/src/cache.rs` (+28 -5) 📝 `psst-gui/src/data/config.rs` (+3 -1) 📝 `psst-gui/src/data/mod.rs` (+1 -0) 📝 `psst-gui/src/main.rs` (+15 -2) 📝 `psst-gui/src/ui/preferences.rs` (+82 -63) 📝 `psst-gui/src/webapi/client.rs` (+1 -3) </details> ### 📄 Description This let's a user clear the cache. https://github.com/user-attachments/assets/e9ba09fb-5453-4cb0-beca-cf7bf263bfb7 While I made this I realize the cache dirs are a little inconsistent. ``` ❯ ls album/ audio/ images/ related-artists/ TrackLines/ artist-info/ episode/ key/ track/ User_info/ ``` We should update the user info and track lines ones. Also we should maybe just clear the whole dir and make all the caches handle the folder creation. But these seem like a separate PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:33:42 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#635
No description provided.