Nicolas Goaziou writes: > IIUC, you are responsible for calling `org-publish-find-title', an > internal "ox-publish" function, before `org-publish-cache' is > initialized. In this case I tend to think that you are also responsible > for taking care of the cache. Is org-publish-find-title an internal function? If so, expecting the user to be responsible for initializing the cache is acceptable. But, is there some "external function" to find the title of an org file? I couldn't find any, and hence resorted to using org-publish-find-title. > You can suggest a patch, if you want to. > > The problem is that functions calling > `org-publish-cache-get-file-property' do not usually know about the > current project name. Calling `org-publish-get-project-from-filename' > each time is a bit expensive, IMO. How about initializing the cache before the execution of the preparation function? I am calling org-publish-find-title in the preparation function, and this would address my use case. If you think this is a good idea, I can come up with a patch. Else, we can close this issue. It's not really a major problem. Regards, Arun Isaac