/**
  * Returns path of pgcache cache rules file
  * Moved to separate file to not load rule.php for each disk enhanced request
  *
  * @return string
  */
 public static function get_pgcache_rules_cache_path()
 {
     switch (true) {
         case Util_Environment::is_apache():
         case Util_Environment::is_litespeed():
             if (Util_Environment::is_wpmu()) {
                 $url = get_home_url();
                 $match = null;
                 if (preg_match('~http(s)?://(.+?)(/)?$~', $url, $match)) {
                     $home_path = $match[2];
                     return W3TC_CACHE_PAGE_ENHANCED_DIR . '/' . $home_path . '/.htaccess';
                 }
             }
             return W3TC_CACHE_PAGE_ENHANCED_DIR . '/.htaccess';
         case Util_Environment::is_nginx():
             return Util_Rule::get_nginx_rules_path();
     }
     return false;
 }