Matt Lundin <m...@imapmail.org> writes: > Thanks for the helpful information. I think the cache would be a nice > way to go, especially if it were combined a timestamp check. E.g., only > files that have been updated since the last publishing should be queried > for titles; otherwise, use the cached file.
Unfortunately, in the following (unexpected) setup == a.org == #+SETUPFILE: b.org == b.org == #+TITLE: Something modifying "b.org" changes title for "a.org", even though the latter is not modified. A dag would be needed to handle this case. The same goes for #+INCLUDE keywords. Overkill, IMO. > I notice that org-publish-find-title does cache the title, but AFAICT > this is never used, since org-publish-format-file-entry calls > org-publish-find-title with the reset argument. Perhaps we could add a > variable to make this optional in org-publish-format-file-entry. E.g., > > (defun org-publish-format-file-entry (fmt file project-plist) > (format-spec > fmt > `((?t . ,(org-publish-find-title file org-publish-find-title-use-cache)) > [...] > > A similar option could be added to the date function date function. > > Would it be O.K. if I went ahead and implemented this? Fine by me. I suggest to mention previous caveat in the docstring. Regards, -- Nicolas Goaziou