Skip to content

Add projectile-invalidate-all-caches command#1979

Open
bbatsov wants to merge 1 commit intomasterfrom
feature/1694-invalidate-all-caches
Open

Add projectile-invalidate-all-caches command#1979
bbatsov wants to merge 1 commit intomasterfrom
feature/1694-invalidate-all-caches

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 15, 2026

Summary

  • Adds projectile-invalidate-all-caches command that clears file caches for all known projects at once
  • Clears in-memory caches (projectile-projects-cache, projectile-projects-cache-time, projectile-project-type-cache, projectile-project-root-cache) and persistent cache files
  • Useful when using projectile-find-file-in-known-projects, where projectile-invalidate-cache only clears the current project

Closes #1694

Test plan

  • Add files to several projects, verify they appear in projectile-find-file-in-known-projects
  • Delete some files, note they still appear (stale cache)
  • Run M-x projectile-invalidate-all-caches
  • Verify deleted files no longer appear in projectile-find-file-in-known-projects

Closes #1694

Add a command that clears the file cache for all known projects at once.
This is useful when using projectile-find-file-in-known-projects, where
stale files from other projects could appear since
projectile-invalidate-cache only clears the current project.
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

Comments