Discover Centmin Mod today
Register Now

Wordpress - Redis Nginx Caching ?

Discussion in 'Blogs & CMS usage' started by Pablin, Apr 4, 2016.

  1. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    12:59 PM
    1.9.13
    10
    Thanks.

    Anyways, for what I am reading, you recommend full Redis rather than pagespeed, right? I am testing now to set up Redis.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I am assuming you're talking about with Wordpress ?

    Yep these days it is recommended. Bit of background below:

    Centmin Mod has a centmin.sh menu option 22 for Wordpress auto installer + WP Super Cache out of the box. This is adequately fast at the time I created this auto installer.

    Cache Enable Alternative to WP Super Cache Plugin



    Then came along a similar Wordpress plugin created by KeyCDN folks called, Cache Enabler. It's Nginx configuration options are virtually identical to WP Super Cache for nginx vhost configuration level. The difference is the PHP coded side of Cache Enabler WP Plugin seems alot easier to setup and less finicky than WP Super Cache when initially enabling it and the options are more simplified. As such for testing purposes, I have added optional support for Cache Enabler in centmin.sh menu option 22 ONLY for Centmin Mod 123.09beta01 builds (not 123.08 stable). For 123.08 stable Centmin Mod, to switch from WP Super Cache to Cache Enabler, follow the manual instructions outlined here instead.

    Redis Nginx Level Cache + Redis Object Cache WP Plugin



    However, there's an even more performant option alternative to WP Super Cache and Cache Enabler. That is provided you first have Redis server installed and configured. The Redis Nginx level cache + Redis object cache will be much faster than WP Super Cache or Cache Enabler. From testing with the Redis caching combination, it is at least 45% faster than WP Super Cache (Cache Enabler would be same as WP Super Cache as the underlying Nginx configuration level setup is virtually the same for setting up static page level caching).
     
  3. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    12:59 PM
    1.9.13
    10
    Yes, that's correct. I am talking about Wordpress.

    Thanks, that's what I was reading in your other posts.

    I am migrating already live sites into my set up. I created a new site with the option 22 to test it out. ;) But the other ones I was doing in them with the basic option 2.

    Any possible problems with Redis when I migrate my multisite with subdomains? I found some guides from other users for subdirectories, but no mention about subdomains.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    never used wordpress multi-site so you'd be on your own there :)
     
  5. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    12:59 PM
    1.9.13
    10
    Haha, ok, thanks. ;)
    I guess that similar rules as I had before in my nginx should work. We will find out. ;)
     
  6. GamerJota

    GamerJota Member

    49
    7
    8
    Mar 1, 2016
    Ratings:
    +18
    Local Time:
    1:59 AM
  7. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    12:59 PM
    1.9.13
    10
    Thanks ;)
     
  8. omrtozd

    omrtozd New Member

    16
    7
    3
    Feb 16, 2021
    Ratings:
    +11
    Local Time:
    7:59 AM
    Hey @eva2000 , do you still recommend Redis setup over recent caching options?
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    2:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    centmin.sh menu option 22's Wordpress installer with Cache Enabler is faster than Redis due to Nginx pre-compress cached HTML file feature enabled in Centmin Mod Nginx via gzip_static directives. And less problematic in the past - see https://blog.centminmod.com/2020/09/06/203/wordpress-cache-enabler-advanced-full-page-caching-guide/ though newer cache enabler has changed cache method so I reverted to older version until I had time to look at it