/**
  * Preloads and caches the server type so it wont have to make query each time when is needed
  */
 public static function return_and_cache_server_type()
 {
     $sgcachepress_options = new SG_CachePress_Options();
     if (!$sgcachepress_options->is_enabled('checked_nginx')) {
         $sgcachepress_options->enable_option('checked_nginx');
         if (SG_CachePress_Supercacher::return_check_is_nginx()) {
             $sgcachepress_options->enable_option('is_nginx');
             return true;
         } else {
             $sgcachepress_options->disable_option('is_nginx');
             return false;
         }
     }
     if ($sgcachepress_options->is_enabled('is_nginx')) {
         return true;
     }
     return false;
 }
 /**
  * Checks if the plugin caches correctly and shows notice when it does not
  * 
  * @since 2.2.7
  */
 public static function check_if_plugin_caches()
 {
     $sg_cachepress_options = new SG_CachePress_Options();
     $urlToCheck = get_home_url();
     if ($sg_cachepress_options->is_enabled('enable_cache')) {
         if (SG_CachePress_Supercacher::return_cache_result($urlToCheck) == 0) {
             if (SG_CachePress_Supercacher::return_cache_result($urlToCheck) == 0) {
                 $sg_cachepress_options->enable_option('show_notice');
                 return false;
             } else {
                 $sg_cachepress_options->disable_option('show_notice');
                 return true;
             }
         } else {
             $sg_cachepress_options->disable_option('show_notice');
             return true;
         }
     } else {
         $sg_cachepress_options->disable_option('show_notice');
         return true;
     }
 }