Title: WP Engine's Replies | WordPress.org

---

# WP Engine

  [  ](https://wordpress.org/support/users/wpengine/)

 *   [Profile](https://wordpress.org/support/users/wpengine/)
 *   [Topics Started](https://wordpress.org/support/users/wpengine/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wpengine/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wpengine/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wpengine/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wpengine/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wpengine/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Frost] Just the theme I’m looking for as a modern base theme](https://wordpress.org/support/topic/just-the-theme-im-looking-for-as-a-modern-base-theme/)
 *  Theme Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [3 years ago](https://wordpress.org/support/topic/just-the-theme-im-looking-for-as-a-modern-base-theme/#post-16751756)
 * We really appreciate the review and support!
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Frost] Amazing nice theme, professionally made](https://wordpress.org/support/topic/amazing-nice-theme-professionally-made/)
 *  Theme Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [3 years ago](https://wordpress.org/support/topic/amazing-nice-theme-professionally-made/#post-16751753)
 * Appreciate the review, GhostMaster!
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Frost] This theme is really amazing](https://wordpress.org/support/topic/this-theme-is-really-amazing/)
 *  Theme Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [3 years ago](https://wordpress.org/support/topic/this-theme-is-really-amazing/#post-16751752)
 * Thanks for the kind words, Syed. Much appreciated!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Class 'WPEngine\\GeoIp' crashing after a while](https://wordpress.org/support/topic/class-wpenginegeoip-crashing-after-a-while/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/class-wpenginegeoip-crashing-after-a-while/#post-7626653)
 * Could you provide your WP Engine install name so I can take a look at your site
   to troubleshoot.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Override location?](https://wordpress.org/support/topic/override-location/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/override-location/#post-7582528)
 * Happy to help! Glad we got you taken care of! I’m marking this as resolved. Thanks
   for using WP Engine!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Override location?](https://wordpress.org/support/topic/override-location/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/override-location/#post-7582522)
 * Hi smattiza,
 * I’m not quite sure what exclusions you are requesting. I think that’s the disconnect
   here.
 * GeoIP is built with caching buckets to serve pages with geographic specificity,
   you want these even if you implement the cookie solution you mentioned here. 
   So the only caching exclusion you need is the cookie caching exclusion. You can
   only setup caching buckets for one variable, I recommend having city caching 
   buckets, as you want to cache at the smallest unit of measure you use.
 * Ask support to add a cookie caching exclusion for the specific name of the cookie
   you are setting. You only want to serve the uncached page if the cookie is set,
   and you only want to set that cookie if a user explicitly sets a preferred location.
   Otherwise you are essentially never caching a page, which won’t be good for page
   performance.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Override location?](https://wordpress.org/support/topic/override-location/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/override-location/#post-7582496)
 * Howdy Smattiza,
 * There should be nothing preventing you from storing a users location in a cookie
   and keying off of that going forward. Do note that custom code is outside the
   scope of support for WP Engine.
 * Assuming you stored location data in a cookie, you would need to update your 
   GeoIP implementation to first check the cookie and do something and then skip
   the GeoIP data. You may need to contact support to have a cache exclusion put
   in place for that cookie, so asking for a “cookie based caching exclusion”
 * Here’s some sudo code:
 *     ```
       if (user sets preferred location) {
       set cookie with that value
       };
       if (cookie present) {
       Read cookie value and do something
       } else {
        read value from geoip and do something
       };
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Compatibility Checker] wp-cli support](https://wordpress.org/support/topic/wp-cli-support-5/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-support-5/#post-7552445)
 * Howdy Erumite!
 * Thanks for checking out the plugin. As listed on [Other Notes](https://wordpress.org/plugins/php-compatibility-checker/other_notes/)
   section, we do support WPCLI.
 * We do have an open bug where WPCLI doesn’t work for some CLI versions. We are
   still investigating that issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Function to check country](https://wordpress.org/support/topic/function-to-check-country/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/function-to-check-country/#post-7525605)
 * Realistically there won’t be any real noticeable performance difference between
   these, the method we recommended is slightly safer as it ensures that GeoIP is
   properly instantiated and the plugin is running. Because GeoIP runs server side
   and works with our caching layer, there should not be any real performance degradation
   when using GeoIP.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Function to check country](https://wordpress.org/support/topic/function-to-check-country/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/function-to-check-country/#post-7525468)
 * Oops, one change to to ensure your function doesn’t throw an error if GeoIP gets
   disabled:
 *     ```
       $country = null;
   
       if ( class_exists( 'WPEngine\GeoIp' ) ) {
         $geo = WPEngine\GeoIp::instance();
         $country = $geo->country();
       }
   
       switch ($country) {
         case 'CA':
           # code...
           break;
         
         default:
           # code...
           break;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine GeoTarget] Function to check country](https://wordpress.org/support/topic/function-to-check-country/)
 *  Plugin Author [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/function-to-check-country/#post-7525455)
 * Howdy Waqas!
 * We use GeoIP on our marketing site, here’s how we call GeoIP directly in our 
   theme code:
 *     ```
       if ( class_exists( 'WPEngine\GeoIp' ) ) {
         $geo = WPEngine\GeoIp::instance();
         $country = $geo->country();
       }
   
       switch ($country) {
         case 'CA':
           # code...
           break;
         
         default:
           # code...
           break;
       }
       ```
   
 * We do recommend having a default case to catch any cases where GeoIP couldn’t
   determine a country, or otherwise gives back unexpected content. You can of course
   define this in a custom function in your theme to make calling it inline more
   semantic.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine Automated Migration] Multisite](https://wordpress.org/support/topic/multisite-299/)
 *  Plugin Contributor [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-299/#post-6462094)
 * I’m sorry to hear you had trouble, I’m emailing you direction to find out details
   about your multisite so we can try replicating the issue. We definitely want 
   our migration tool to work with multisites. I’ll leave this issue open until 
   we have investigated this issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Engine Automated Migration] Multisite](https://wordpress.org/support/topic/multisite-299/)
 *  Plugin Contributor [WP Engine](https://wordpress.org/support/users/wpengine/)
 * (@wpengine)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-299/#post-6462092)
 * Apologies for the delay. Yes, our testing has shown that our Automated Migration
   tool does indeed work for both subdirectory and subdomain multisites.
 * If you find that this is not the case, please reach out and we will investigate,
   but it should work.

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