Title: WP Fastest Cache not compatible with wp-cli?
Last modified: August 31, 2016

---

# WP Fastest Cache not compatible with wp-cli?

 *  Resolved [mgatten](https://wordpress.org/support/users/mgatten/)
 * (@mgatten)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/)
 * I’ve been having a really hard time getting wp-cli to work on my WordPress site.
   Whenever it runs it reports errors that SERVER_PORT, SERVER_NAME, and HTTP_HOST
   indexes are undefined in wpFastestCache.php, and then outputs the sourcecode 
   of our WordPress homepage.
 * Then I thought to disable WP Fastest Cache, and suddenly it started working like
   a charm.
 * The reason, it seems, is that wpFastestCache.php assumes it’s going to be run
   by the server and doesn’t take into account the possibility that the $_SERVER
   variables won’t be set.
 * Is this something that may be fixed soon? We want very much to continue using
   WPFC, but the work I’ll be doing with wp-cli is actually more critical.
 * Thanks,
    Marshall
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [mgatten](https://wordpress.org/support/users/mgatten/)
 * (@mgatten)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/#post-7131988)
 * (Actually, I found a workaround that will allow me to keep using WPFC. I added
   a line to my .bash-profile:
    wp –skip-plugin=wp_fastest_cache
 * It still reports the undefined indices in wpFastestCache.php for some reason,
   but then works and doesn’t output the homepage sourcecode.
 * Marshall
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/#post-7132060)
 * together we should fix it. please send me an email: [fastestcache@gmail.com](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/fastestcache@gmail.com?output_format=md)
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/#post-7132141)
 * I fixed it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP Fastest Cache not compatible with wp-cli?’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 3 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/wp-fastest-cache-not-compatible-with-wp-cli/#post-7132141)
 * Status: resolved