Support » Plugin: Cache Enabler » Integrate with Nginx “location” parameter?

  • Resolved Roger

    (@htgmwcom)


    Hello,

    Can someone help with a quick support answer (or guidance)?

    If I add the below to the location parameter for Nginx (found in common_http.conf)…

    location / {
        try_files "/wp-content/cache/cache-enabler/${http_host}${request_uri}/embed/https-index.html"
    }

    Will this work?

    I see Cache Enabler stores the cached copies of pages like this:

    /wp-content/cache/cache-enabler/the-domain-URL/the-requested-page-or-post/embed/https-index.html

    So a cached copy of: http://www.example.com/example-post

    Would be found in:

    /wp-content/cache/cache-enabler/www.example.com/example-post/embed/https-index.html

    So I think the addition to Nginx location should be:

    /wp-content/cache/cache-enabler/${http_host}${request_uri}/embed/https-index.html

    Yes, no?

    Any help is appreciated… Just trying to squeeze extra speed juice 😉

    Much thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integrate with Nginx “location” parameter?’ is closed to new replies.