aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2025-01-31 12:15:27 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2025-01-31 12:15:27 +0200
commit00ec14cadabfceea59f8124fa540058059bc3562 (patch)
tree392633bfac96f09391da281269036abd15d8d0c2 /projectile.el
parent01f69afe0906d5de197b55355bbbcf0f936f7527 (diff)
Add a couple of comments
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/projectile.el b/projectile.el
index 6b40805..7790f6f 100644
--- a/projectile.el
+++ b/projectile.el
@@ -1066,10 +1066,12 @@ to invalidate."
(completing-read "Remove cache for: "
(hash-table-keys projectile-projects-cache))
(projectile-acquire-root))))
+ ;; reset the in-memory cache
(setq projectile-project-root-cache (make-hash-table :test 'equal))
(remhash project-root projectile-project-type-cache)
(remhash project-root projectile-projects-cache)
(remhash project-root projectile-projects-cache-time)
+ ;; reset the project's cache file
(projectile-serialize nil (projectile-project-cache-file project-root))
(when projectile-verbose
(message "Invalidated Projectile cache for %s."