wordpress-mobile / wordpress-mobile/WordPress-Android
Clear the wordpress-rs cache on logout and site removal
@oguzkocer is already working on this.
Since Aug 19, 2026.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
wordpress-rs exposes removeSelfHostedSite and removeWordpressComSite, which delete a site and its cached rows. Neither is called anywhere in this repo.
Site removal currently goes through FluxC SiteAction.REMOVE_SITE, which does not touch wordpress-rs. Logout calls wpServiceProvider.clearAll() (AppInitializer.kt:722), which is services.clear() on an in-memory map (WpServiceProvider.kt:47-49) and leaves the database file untouched.
Worth investigating whether we should call these APIs on logout and site removal.
Note that this requires wordpress-rs:0.7.0 update in https://github.com/wordpress-mobile/WordPress-Android/pull/23237 to land first.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.