diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2025-02-03 22:35:55 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2025-02-03 22:35:55 +0200 |
| commit | a4a6cacd908bc614d60c6233a7f224baebfe1178 (patch) | |
| tree | c6fe53dbcfbaeab250691d4aef471ed7fbcedf49 /doc | |
| parent | 0efac68c82d8ebdb3fd83ea5e530c4b816c87f8f (diff) | |
Make the cache transient by default
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/modules/ROOT/pages/configuration.adoc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/modules/ROOT/pages/configuration.adoc b/doc/modules/ROOT/pages/configuration.adoc index 59ee907..135d771 100644 --- a/doc/modules/ROOT/pages/configuration.adoc +++ b/doc/modules/ROOT/pages/configuration.adoc @@ -149,7 +149,16 @@ Pressing kbd:[s-p z] will add the currently visited file to the cache for current project. Generally files created outside Emacs will be added to the cache automatically the first time you open them. -The project cache is persistent and will be preserved during Emacs restarts. +Normally the cache lasts for the duration of your Emacs session. +If you want to cache to persist between Emacs sessions you +should set this option to `'persistent`. + +[source,elisp] +---- +(setq projectile-enable-caching 'persistent) +---- + +Now the project cache is persistent and will be preserved during Emacs restarts. Each project gets its own cache file, that will be placed in the root folder of the project. The name of the cache file is `.projectile-cache.eld` by default, but you can tweak it if you want to: |
