summaryrefslogtreecommitdiff
path: root/lisp/gnus-cache.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus-cache.el')
-rw-r--r--lisp/gnus-cache.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/gnus-cache.el b/lisp/gnus-cache.el
index b478acce0f2..d44c4949d15 100644
--- a/lisp/gnus-cache.el
+++ b/lisp/gnus-cache.el
@@ -66,7 +66,10 @@ variable to \"^nnml\".")
(defun gnus-cache-open ()
"Initialize the cache."
- (gnus-cache-read-active))
+ (when (or (file-exists-p gnus-cache-directory)
+ (and gnus-use-cache
+ (not (eq gnus-use-cache 'passive))))
+ (gnus-cache-read-active)))
(gnus-add-shutdown 'gnus-cache-close 'gnus)