Fix: Cache invalidation of relative-date ts-related predicates

Fixes #223.  Thanks to Ihor Radchenko (@yantar92) for reporting.
This commit is contained in:
Adam Porter 2021-06-21 06:18:03 -05:00
parent 87b3d0bd97
commit 482a5c939b
5 changed files with 557 additions and 146 deletions

View file

@ -172,6 +172,8 @@ Can we do that? In fact, we can, by using a query normalizer. Normalizers are
(tags name))))
#+END_SRC
/NOTE: Normalizers are applied to a query repeatedly until the query is fully normalized, so normalizers should be carefully written to avoid infinite loops. In this example, there is no risk of an infinite loop, because the normalized query no longer contains the ~person~ predicate, so the normalizer only applies to the query once./
Now, don't faint from all the backquoting and unquoting--it's just Lisp, nothing to be afraid of! Let's slow down a moment and see what the normalized query looks like to be sure we're doing it correctly:
#+BEGIN_SRC elisp :results code :exports both :cache yes