Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
* Fix page cache .htaccess for Windows (#490)
Browse files Browse the repository at this point in the history
* Fix for windows: make the $document_root in linux style
  • Loading branch information
Furniel committed Jul 3, 2018
1 parent 5f07a65 commit 54a6328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PgCache_Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,8 @@ private function rules_core_generate_nginx( $config ) {
$env_w3tc_enc = "\$w3tc_enc";
}

$cache_path = str_replace( Util_Environment::document_root(), '', $cache_dir );
$document_root = str_replace('\\', '/', Util_Environment::document_root());
$cache_path = str_replace($document_root, '', $cache_dir);
$uri_prefix = $cache_path . "/\$http_host/" .
"\$request_uri/_index" . $env_w3tc_ua . $env_w3tc_ref .
$env_w3tc_cookie . $env_w3tc_ssl . $env_w3tc_preview;
Expand Down

0 comments on commit 54a6328

Please sign in to comment.