 
     (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)

      "
     PROJECTILE: %(if (fboundp 'projectile-project-root) (projectile-project-root) \"TBD\")

^^^^       Find               ^^   Search/Tags       ^^^^       Buffers               ^^   Cache
^^^^--------------------------^^---------------------^^^^-----------------------------^^-----------------------
_f_/_s-f_: file               _a_: ag                ^^    _i_: Ibuffer               _c_: cache clear
^^    _F_: file dwim          _g_: update gtags      ^^    _b_: switch to buffer      _x_: remove known project
^^    _d_: file curr dir      _o_: multi-occur       _K_/_s-k_: Kill all buffers      _X_: cleanup non-existing
^^    _r_: recent file        ^^                     ^^^^                             _z_: cache current
^^    _D_: dir


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

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