Function: org-publish-cache-set-file-property

org-publish-cache-set-file-property is a byte-compiled function defined in ox-publish.el.gz.

Signature

(org-publish-cache-set-file-property FILENAME PROPERTY VALUE &optional PROJECT-NAME TRANSIENT)

Documentation

Set the VALUE for a PROPERTY of file FILENAME in publishing cache to VALUE.

Use cache file of PROJECT-NAME. If the entry does not exist, it will be created. Return VALUE.

When TRANSIENT is non-nil, store value in transient cache that is only maintained during the current publish process.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-publish.el.gz
(defun org-publish-cache-set-file-property
    (filename property value &optional project-name transient)
  "Set the VALUE for a PROPERTY of file FILENAME in publishing cache to VALUE.
Use cache file of PROJECT-NAME.  If the entry does not exist, it
will be created.  Return VALUE.

When TRANSIENT is non-nil, store value in transient cache that is only
maintained during the current publish process."
  ;; Evtl. load the requested cache file:
  (when project-name (org-publish-initialize-cache project-name))
  (if transient
      (puthash (cons filename property) value
               org-publish-transient-cache)
    (let ((pl (org-publish-cache-get filename)))
      (if pl (progn (plist-put pl property value) value)
        (org-publish-cache-get-file-property
         filename property value nil project-name)))))