Discover Centmin Mod today
Register Now

Wordpress redis cache

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

  1. JarylW

    JarylW Active Member

    216
    40
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +102
    Local Time:
    10:36 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

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    12:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
    40
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +102
    Local Time:
    10:36 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.
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    12:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    don't think there is a downstream config for redis full page cache, only for nginx proxy cache and varnish cache