Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress redis cache

Discussion in 'Blogs & CMS usage' started by JarylW, Sep 25, 2015.

  1. JarylW

    JarylW Active Member

    216
    41
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +103
    Local Time:
    4:52 AM
    configured as per Redis - How to install Redis server on Centmin Mod LEMP stack | Centmin Mod Community

    I noticed that you used curl -s to verify page being cached.
    Code:
    curl -s http://newdomain.com | tail -3
    Also noticed you set headers like RTcamp.

    Code:
    more_set_headers 'X-Cache $srcache_fetch_status';
    more_set_headers 'X-Cache-2 $srcache_store_status';
    In html comment of curl -s it says page is cached yet curl -I site says
    X-Cache: MISS
    X-Cache-2: BYPASS


    Monitoring using redis-cli monitor also shows no activity, although the Nginx helper plugin printed the cached comment in html.

    EDIT: maybe i should install phpredisadmin and see if there is actually anything stored.
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,298
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,632
    Local Time:
    6:52 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    does curl -s timestamp change on re-runs ? or cached and stayed the same
    yeah useful :) although redis monitor should be just as accurate from my tests
     
  3. JarylW

    JarylW Active Member

    216
    41
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +103
    Local Time:
    4:52 AM
    Lol, I actually forgot to check the timestamp. Timestamp stays the same with curl -s, but with curl -I, headers output a miss.

    Edit: woops forgot to turn pagespeed off. Might need to configure downstream caching properly although I've never done that before.
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,298
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,632
    Local Time:
    6:52 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    don't think there is a downstream config for redis full page cache, only for nginx proxy cache and varnish cache