Thread Starter
hc4wp
(@hc4wp)
Hi,
The cache files was created.
This nginx configuration is that cache files can be opened directly without index.php process. but if change this index.php’s name , it can’t jump to the cache files. it does’t work.
Thread Starter
hc4wp
(@hc4wp)
nginx:
==========================================================
location / {
if (-f $request_filename) {
break;
}
set $caches 1;
set $request_file $document_uri;
set $cache_file ”;
if ($request_method = POST) {
set $caches 0;
}
if ($query_string) {
set $caches 0;
}
if ($caches = 0) {
set $request_file ”;
}
if ($request_file ~ ^(.+)$) {
set $cache_file /wp-content/cache/all/$1/index.html;
}
if (-f $document_root$cache_file) {
rewrite ^ $cache_file last;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
==========================================================
it doesn’t work too.