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 /test | |
| parent | 0efac68c82d8ebdb3fd83ea5e530c4b816c87f8f (diff) | |
Make the cache transient by default
Diffstat (limited to 'test')
| -rw-r--r-- | test/projectile-test.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el index 8c62a63..9df08aa 100644 --- a/test/projectile-test.el +++ b/test/projectile-test.el @@ -81,7 +81,7 @@ You'd normally combine this with `projectile-test-with-sandbox'." `(let ((projectile-indexing-method 'native) (projectile-projects-cache (make-hash-table :test 'equal)) (projectile-projects-cache-time (make-hash-table :test 'equal)) - (projectile-enable-caching t)) + (projectile-enable-caching 'persistent)) ,@(mapcar (lambda (file) (let* ((path (concat "project/" file)) (dir (file-name-directory path))) @@ -853,7 +853,7 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'. (cd "project") (let ((projectile-projects-cache (make-hash-table :test #'equal)) (projectile-projects-cache-time (make-hash-table :test #'equal)) - (projectile-enable-caching t)) + (projectile-enable-caching 'persistent)) (puthash (projectile-project-root) '("file1.el") projectile-projects-cache) @@ -881,7 +881,7 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'. (cd "project") (let ((projectile-projects-cache (make-hash-table :test #'equal)) (projectile-projects-cache-time (make-hash-table :test #'equal)) - (projectile-enable-caching t) + (projectile-enable-caching 'persistent) (projectile-files-cache-expire 10)) ;; Create a stale cache with only one file in it. (puthash (projectile-project-root) |
