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

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

[elpa] externals/org 1bc8389871 21/31: org-persist-read: Check expiry


From: ELPA Syncer
Subject: [elpa] externals/org 1bc8389871 21/31: org-persist-read: Check expiry
Date: Sat, 29 Jan 2022 04:58:11 -0500 (EST)

branch: externals/org
commit 1bc8389871472d77e230f162d818e20453c0c58d
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-persist-read: Check expiry
---
 lisp/org-persist.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 5c3858959e..bff1a094ee 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -743,6 +743,9 @@ When LOAD? is non-nil, load the data instead of reading."
          (data nil))
     (when (and collection
                (file-exists-p persist-file)
+               (or (not (plist-get collection :expiry)) ; current session
+                   (not (org-persist--gc-expired-p
+                       (plist-get collection :expiry) collection)))
                (or (not hash-must-match)
                    (and (plist-get associated :hash)
                         (equal (plist-get associated :hash)



reply via email to

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