dimitri/el-get — pull request #862 by tkf (2012-08-31 19:36:42+00:00)
Title: Clear status cache before init/install/update

Current caching doesn't work well with running multiple Emacs processes. This PR is intended to fix that.

The cache is cleared before running these functions:

* el-get-init
* el-get-install
* el-get-reload
* el-get-update
* el-get-remove
* el-get

The other more restricting way I have in mind is something like this:

```cl
(defvar el-get-status-cache 'nocache
"Cache used by `el-get-read-status-file'.
To suppress caching, set `nocache' to it.")

(defun el-get-read-status-file ()
(cond
;; Cached
((and el-get-status-cache (listp el-get-status-cache))
el-get-status-cache)
;; Read from file
(el-get-status-cache
(el-get-read-status-file-force))
;; Read from file and cache it
(t (setq el-get-status-cache (el-get-read-status-file-force)))))

(defun el-get (&optional sync &rest packages)
(let (...
el-get-status-cache) ; enable caching
...))
```