aboutsummaryrefslogtreecommitdiff
path: root/sx-cache.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-24 11:02:26 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-24 11:02:26 +0000
commitab4ffccca09e89d987d48946a121b25c71eaa489 (patch)
treeff42f2d8be6d82ea05df7ffc05729c6d4e1a8541 /sx-cache.el
parent3edd697b1d34a05e3112eb61ff82f71f79aafa6d (diff)
Make invalidate-all interactive
Diffstat (limited to 'sx-cache.el')
-rw-r--r--sx-cache.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-cache.el b/sx-cache.el
index 7ff7f7f..b279a59 100644
--- a/sx-cache.el
+++ b/sx-cache.el
@@ -87,10 +87,11 @@ re-initialize the cache."
(defun sx-cache-invalidate-all (&optional save-auth)
"Invalidate all caches using `sx-cache--invalidate'.
Afterwards reinitialize caches using `sx-initialize'. If
-SAVE-AUTH is non-nil, do not clear AUTH cache.
+SAVE-AUTH (the prefix arg) is non-nil, do not clear AUTH cache.
Note: This will also remove read/unread status of questions as well
as delete the list of hidden questions."
+ (interactive "P")
(let* ((default-directory sx-cache-directory)
(caches (file-expand-wildcards "*.el")))
(when save-auth