Join the community today
Register Now

WP Rocket installation on Nginx

Discussion in 'Blogs & CMS usage' started by Mrbo, Feb 25, 2019.

  1. BamaStangGuy

    BamaStangGuy Premium Member Premium Member

    651
    189
    43
    May 25, 2014
    Ratings:
    +264
    Local Time:
    1:39 AM
    Unfortunately, I wasn't able to get this to work either. It kept saying mobile caching was active, even though it was disabled. I edited the default.conf to remove checks, then it would say it was cached but I could load a heavy page that uses MySQL and each request would hit php-fpm and MySQL despite it saying it was being served via Nginx.
     
  2. zkylizer

    zkylizer New Member

    16
    0
    1
    Jun 5, 2019
    Ratings:
    +2
    Local Time:
    2:39 PM
    1.17.0
    MariaDB 10
    Same here, i try using at location / {
    Code (Text):
    try_files $uri $uri/ /index.php?$args;
    

    Or
    Code (Text):
    try_files "/wp-content/cache/wp-rocket/$host${uri}$is_args$args/index-https.html_gzip" $uri $uri/ /index.php$is_args$args;
    

    Result still :
    X-Rocket-Nginx-Serving-Static: No
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:39 AM
    Latest
    Latest
    In my WP-Multidomain setup this is still working fine.

    In the beginning I noticed that if you selected a single time in wp-rocket cache mobile it stopped working correctly. After changing the settings still no go.

    Deleting or creating the directory with the cache file as indicated in the debug mode resolved the issue.

    So delete and/or (re)create the directory with the cache file.
    Code (Text):
    X-Rocket-Nginx-File: /home/nginx/domains/domain.com/public/wp-content/cache/wp-rocket/domain.com///index-https.html_gzip
    
     
  4. zkylizer

    zkylizer New Member

    16
    0
    1
    Jun 5, 2019
    Ratings:
    +2
    Local Time:
    2:39 PM
    1.17.0
    MariaDB 10
    fixed by disable mobile cache in wprocket setting
     
    Last edited: Apr 18, 2020