emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 5aad235 126/135: Added function to invalidate cache


From: Ian Dunn
Subject: [elpa] master 5aad235 126/135: Added function to invalidate cache
Date: Mon, 17 Feb 2020 10:53:05 -0500 (EST)

branch: master
commit 5aad235ed85639f5c215af0a2d015de8b9dc201c
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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]