Join the community today
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:
    10:20 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

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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:
    10:20 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

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    don't think there is a downstream config for redis full page cache, only for nginx proxy cache and varnish cache