Function: projectile--register-project-cache-cleanup

projectile--register-project-cache-cleanup is a byte-compiled function defined in projectile.el.

Signature

(projectile--register-project-cache-cleanup NAME FUNCTION)

Documentation

Register FUNCTION under NAME to run when a project is invalidated.

FUNCTION is called with the project root. Registering under an existing NAME replaces the previous cleanup.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--register-project-cache-cleanup (name function)
  "Register FUNCTION under NAME to run when a project is invalidated.
FUNCTION is called with the project root.  Registering under an
existing NAME replaces the previous cleanup."
  (setf (alist-get name projectile--project-cache-cleanups) function))