Actually I think there is an error in the nginx sample conf.
Shouldn’t it be
if (!-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc") {
set $w3tc_rewrite 0;
}
instead of
if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc") {
set $w3tc_rewrite 0;
}
If the file doesn’t exist it shouldn’t rewrite?! 🙂