 
     (defun modi/advice-projectile-dont-cache-ignored-projects (&rest args)
       "Do not cache files from ignored projects when doing `find-file'."
-      (let ((do-not-cache (member (projectile-project-p)
-                                  projectile-ignored-projects)))
+      (let* ((project-root (projectile-project-p))
+             (do-not-cache (projectile-ignored-project-p project-root)))
         do-not-cache))
     (advice-add 'projectile-cache-files-find-file-hook :before-until
                 #'modi/advice-projectile-dont-cache-ignored-projects)

      ("s-f" projectile-find-file)
      ("F"   projectile-find-file-dwim)
      ("D"   projectile-find-dir)
      ("g"   ggtags-update-tags)
      ("i"   projectile-ibuffer)
      ("K"   projectile-kill-buffers)
      ("s-k" projectile-kill-buffers)
      ("m"   projectile-multi-occur)
      ("o"   projectile-multi-occur)
      ("p"   projectile-switch-project "switch project")
      ("s-p" projectile-switch-project "switch project")
      ("s"   projectile-switch-project)
      ("r"   projectile-recentf)
      ("x"   projectile-remove-known-project)

;; Time-stamp: <2016-07-10 22:26:30 kmodi>

;; Projectile
;; https://github.com/bbatsov/projectile
