branch: master
commit 5aad235ed85639f5c215af0a2d015de8b9dc201c
Author: Ian Dunn <[email protected]>
Commit: Ian Dunn <[email protected]>
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