        (delete-file generated-autoload-file)
        (error "Couldn't evaluate autoloads.el: %s" (cadr ex))))))
 
-(defun doom/compile (&optional recompile-p lite-p)
+(defun doom/compile (&optional lite-p)
   "Byte compile your emacs configuration (init.el, core/*.el &
 modules/*/*/**.el). DOOM Emacs was designed to benefit from this, but it may
-take a while.
-
-If RECOMPILE-P is non-nil, don't byte-compile *.el files that don't have an
-accompanying *.elc file."
+take a while."
   (interactive)
   ;; Ensure all relevant config files are loaded. This way we don't need
   ;; eval-when-compile and require blocks scattered all over.

        (message "\n"))
      (when (> n-fail 0)
        (message "\n%s" (mapconcat (lambda (file) (concat "+ ERROR: " (car file)))
                                   (cl-remove-if 'cdr (reverse results)) "\n")))
      (message "%s %s file(s)"
               (if recompile-p "Recompiled" "Compiled")
               (format (if (= total 0) "%s" "%s/%s") total-success total)))))

(defun doom/compile-lite (&optional recompile-p)
  "A light-weight version of `doom/compile' which only compiles core files in
your emacs configuration (init.el and core/**/*.el)."
  (interactive)
  (doom/compile recompile-p t))

(defun doom/clean-cache ()
  "Clear local cache (`doom-cache-dir'). You may need to restart Emacs for some

`doom/packages-autoremove'. "
  (interactive)
  (if noninteractive
      (ignore-errors
        (require 'server)
        (server-eval-at "server" '(let (noninteractive) (doom/reload))))
    (doom-initialize t)
    (doom/compile t)
    (message "Reloaded %d packages" (length doom--package-load-path))))
