 It also improves performance by allowing the build cache to be
 pruned."
   (setq straight--profile-cache-valid t)
+  (setq straight--profile-cache-validated t)
   ;; We can safely prune the build cache if init succeeded.
   (dolist (package (hash-table-keys straight--build-cache))
     (unless (gethash package straight--recipe-cache)

  (interactive "P")
  (when (or force
            (and (or straight--profile-cache-valid
                     (ignore
                      (message (concat "Caches are outdated, aborting "
                                       (if straight--finalization-guaranteed
                                           "(please reload your init-file)"
                                         "(please restart Emacs)")))))
                 (let ((unpushed-recipes
                        (straight-push-all
                         (lambda (package)

by the function `straight-declare-init-succeeded', and is set
back to nil when the straight.el bootstrap is run or
`straight-use-package' is invoked.")

(defvar straight--profile-cache-validated nil
  "Non-nil if `straight--profile-cache-valid' is meaningful.
The function `straight-freeze-versions' will grudgingly accept a
nil value of `straight--profile-cache-valid' if this variable is
also nil. It is set to non-nil by the function
`straight-declare-init-succeeded', and is set back to nil when
the straight.el bootstrap is run.")

;;;;; Recipe repositories

