W3 Total Cache version: 0.9.2.8
WordPress version: 3.5.1
Other plugins activated: none
To reproduce what I meant in the subject header...
- Deactivate all the modules in W3TC.
- Activate disk-enhanced caching
- Restart nginx
- Visit the home page as a non-logged-in user.
What is expected: The home page with '200' as the header.
What is occurring: The home page produces '404'
What has gone wrong: A typo in the default configuration.
A rewrite rule in the default configuration looks like this at the moment...
if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index.html") {
set $w3tc_rewrite 0;
}
However, it should be...
if (!-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index.html") {
set $w3tc_rewrite 0;
}
This is due the missing '!' symbol at line number 923 of 'lib/W3/Plugin/PgCacheAdmin.php' file.
I hope this helps someone who has had the same issue with the version 0.9.2.8 of W3TC.