Function: projectile-maybe-invalidate-cache

projectile-maybe-invalidate-cache is a byte-compiled function defined in projectile.el.

Signature

(projectile-maybe-invalidate-cache FORCE)

Documentation

Invalidate if FORCE or project's dirconfig newer than cache.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/projectile.el
(defun projectile-maybe-invalidate-cache (force)
  "Invalidate if FORCE or project's dirconfig newer than cache."
  (when (or force
            (when-let* ((project-root (projectile-project-root)))
              (projectile--dirconfig-newer-than-cache-p project-root)))
    (projectile-invalidate-cache nil)))