Thomas Ingram <tho...@taingram.org> writes: > I was hoping I could get some insight on using the > `org-publish-find-title' and `org-publish-find-date' functions. I am > trying to build an add-on for org-publish and using some org-publish > functions. > > Sometimes the function returns the error: > "org-publish-cache-get: ‘org-publish-cache-get’ called, but no cache > present" > > I'm not sure if this is a bug or if these functions cannot be used > externally. I don't fully understand how the cache is being saved/cleared. > Can anyone help me with this?
In the nutshell, the project cache should be initialized when org-publish-cache-get-file-property is called. See `org-publish-initialize-cache'. The API in this area is not ideal, unfortunately. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>