Skip to content

[Fix #1694] Add projectile-invalidate-cache-all command#1972

Open
takeokunn wants to merge 1 commit intobbatsov:masterfrom
takeokunn:feature/issue-1694
Open

[Fix #1694] Add projectile-invalidate-cache-all command#1972
takeokunn wants to merge 1 commit intobbatsov:masterfrom
takeokunn:feature/issue-1694

Conversation

@takeokunn
Copy link
Contributor

Summary

Add a new interactive command projectile-invalidate-cache-all that clears the file cache for all known projects at once — both in-memory hash tables and on-disk persistent cache files.

This resolves #1694 where projectile-find-file-in-known-projects shows stale file listings (deleted files still appear, new files missing) because projectile-invalidate-cache only operates on a single project.

Closes #1694


  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (eldev test)
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the docs (when adding new project types, configuration options, commands, etc)

Thanks!

…t caches

- Introduce projectile-invalidate-cache-all to remove file caches for all
  known projects, including persistent caches and related hash tables
- Update troubleshooting documentation with usage instructions for the new
  command
- Add menu entry for "Invalidate all caches"
- Add tests covering cache clearing, persistent cache handling, and edge cases
- Document new command in CHANGELOG
@takeokunn takeokunn marked this pull request as ready for review February 14, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

projectile-find-file-in-known-projects cache can not clear

1 participant