wordpress-mobile / wordpress-mobile/WordPress-Android

Clear the wordpress-rs cache on logout and site removal

Open
#23,240 0 comments 0 reactions 1 assignee View on GitHub

@oguzkocer is already working on this.

Since Aug 19, 2026.

[Type] Enhancement Delete Site Site Management
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.