Function: org-publish-write-cache-file
org-publish-write-cache-file is a byte-compiled function defined in
ox-publish.el.gz.
Signature
(org-publish-write-cache-file &optional FREE-CACHE)
Documentation
Write org-publish-cache to file.
If FREE-CACHE, empty the cache.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-publish.el.gz
;;; Caching functions
(defun org-publish-write-cache-file (&optional free-cache)
"Write `org-publish-cache' to file.
If FREE-CACHE, empty the cache."
(unless org-publish-cache
(error "`org-publish-write-cache-file' called, but no cache present"))
(let ((cache-file (org-publish-cache-get ":cache-file:")))
(unless cache-file
(error "Cannot find cache-file name in `org-publish-write-cache-file'"))
(with-temp-file cache-file
(let (print-level print-length)
(insert "(setq org-publish-cache \
\(make-hash-table :test 'equal :weakness nil :size 100))\n")
(maphash (lambda (k v)
(insert
(format "(puthash %S %s%S org-publish-cache)\n"
k (if (or (listp v) (symbolp v)) "'" "") v)))
org-publish-cache)))
(when free-cache (org-publish-reset-cache))))