Generated nginx.conf bug causes it to always use PHP to server cached pages
-
Hello,
Sorry for posting it here but didn’t know if it was the right place or not.
W3 Total Cache version: 0.9.4
The generated nginx.conf uses $w3tc_rewrite in all filenames for match which causes it to append a 1 after index.
This makes nginx fail all checks for file existence and, as such, fallback to php to serve the contents (still cached).
Lines with error:
set $w3tc_ext ""; if (-f "$document_root/mw-public/cache/page_enhanced/$http_host/$request_uri/_index<strong>$w3tc_rewrite</strong>.html") { set $w3tc_ext .html; } if (-f "$document_root/mw-public/cache/page_enhanced/$http_host/$request_uri/_index<strong>$w3tc_rewrite</strong>.xml") { set $w3tc_ext .xml; } if ($w3tc_ext = "") { set $w3tc_rewrite 0; } if ($w3tc_rewrite = 1) { rewrite .* "/mw-public/cache/page_enhanced/$http_host/$request_uri/_index<strong>$w3tc_rewrite</strong>$w3tc_ext" last; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Generated nginx.conf bug causes it to always use PHP to server cached pages’ is closed to new replies.