• Hi, multisite categories, it doesn’t work. Can you help me ?

    https://nucuta.com/wp-fastest-cache-configuration-for-nginx/

    Basically, if cached files are not available fresh contents are served, otherwise cached files are served. Fresh contents require access to database, and utilize PHP; hence it costs CPU, and RAM, but cached contents virtually cost nothing, since the webserver is Nginx, contents are just HTML files, serving rate is extremely high. This tremendously decreases the page loading time, and improves the conversion, and retention rate.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Plugin Author Emre Vona

    (@emrevona)

    what does “it doesn’t work” mean? do you mean that the cache files are not created?

    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.

    Plugin Author Emre Vona

    (@emrevona)

    On the Nginx server the cache files are served via php.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP Fastest Cache Configuration for Nginx’ is closed to new replies.