diff options
Diffstat (limited to 'projectile.el')
| -rw-r--r-- | projectile.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el index 273be32..60b761f 100644 --- a/projectile.el +++ b/projectile.el @@ -1098,7 +1098,9 @@ to invalidate." (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 (eq projectile-enable-caching 'persistent) + ;; TODO: Perhaps it's better to delete the cache file in such cases? + (projectile-serialize nil (projectile-project-cache-file project-root))) (when projectile-verbose (message "Invalidated Projectile cache for %s." (propertize project-root 'face 'font-lock-keyword-face)))) |
