Skip to content

Commit

Permalink
Remove depreciated VHOST code that was creating a bug with cache clea…
Browse files Browse the repository at this point in the history
…ring on WPMU.
  • Loading branch information
raamdev committed Dec 7, 2013
1 parent 3e1067e commit 402fd1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quick-cache/includes/advanced-cache.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function maybe_start_output_buffering()
$http_host_nps = preg_replace('/\:[0-9]+$/', '', $_SERVER['HTTP_HOST']);
$host_dir_token = '/'; // Assume NOT multisite; or running it's own domain.

if(is_multisite() && (!defined('SUBDOMAIN_INSTALL') || !SUBDOMAIN_INSTALL) && (!defined('VHOST') || !VHOST))
if(is_multisite() && (!defined('SUBDOMAIN_INSTALL') || !SUBDOMAIN_INSTALL))
{ // Multisite w/ sub-directories; need sub-directory. We MUST validate against blog paths too.

list($host_dir_token) = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
Expand Down
2 changes: 1 addition & 1 deletion quick-cache/quick-cache.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function clear_cache($manually = FALSE)
$http_host_nps = preg_replace('/\:[0-9]+$/', '', $_SERVER['HTTP_HOST']);
$host_dir_token = '/'; // Assume NOT multisite; or running it's own domain.

if($is_multisite && (!defined('SUBDOMAIN_INSTALL') || !SUBDOMAIN_INSTALL) && (!defined('VHOST') || !VHOST))
if($is_multisite && (!defined('SUBDOMAIN_INSTALL') || !SUBDOMAIN_INSTALL))
{ // Multisite w/ sub-directories; need sub-directory. We MUST validate against blog paths too.

list($host_dir_token) = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
Expand Down

0 comments on commit 402fd1a

Please sign in to comment.