[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ad74219 1/4: Added function to invalidate cache
From: |
Ian Dunn |
Subject: |
[elpa] master ad74219 1/4: Added function to invalidate cache |
Date: |
Sat, 2 Feb 2019 17:09:05 -0500 (EST) |
branch: master
commit ad74219dc65417e0f902c19cc766627a526cfa38
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Added function to invalidate cache
* org-edna.el (org-edna-invalidate-cache): New interactive defun.
---
org-edna.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/org-edna.el b/org-edna.el
index d9ebc2b..f050af7 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -593,6 +593,17 @@ following reasons:
;; Adds the entry to the cache, and returns the results.
(org-edna--add-to-finder-cache func-sym args)))))
+(defun org-edna-invalidate-cache ()
+ "Invalidate the finder cache.
+
+Use this only if there's a problem with the cache.
+
+When an Org mode buffer is reverted, the cache will be made
+useless for that buffer. Therefore, it's a good idea to call
+this after reverting Org mode buffers."
+ (interactive)
+ (setq org-edna--finder-cache (make-hash-table :test 'equal)))
+
;;; Interactive Functions