Join the community today
Become a Member

Wordpress What is the best and fastest cache for wp

Discussion in 'Blogs & CMS usage' started by Max, May 14, 2018.

  1. Max

    Max Member

    37
    3
    8
    Feb 17, 2018
    Ratings:
    +4
    Local Time:
    1:09 AM
    hello

    what is the fastest cache for wp sites with centmin / php7.2.5.
    apc xcache memcached opcache redis or combinations

    thanks
     
    Last edited: May 14, 2018
  2. RoldanLT

    RoldanLT Premium Member Premium Member

    4,182
    1,013
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,435
    Local Time:
    8:09 AM
    1.11
    10.2
    Memcached or Redis for Data Caching.
    Cache Enabler for Full Site Page Caching.
    ZendOpcache for PHP opcode Caching.
     
    • Agree Agree x 1
  3. Max

    Max Member

    37
    3
    8
    Feb 17, 2018
    Ratings:
    +4
    Local Time:
    1:09 AM
    so memcached and opcache should work well together?
     
  4. RoldanLT

    RoldanLT Premium Member Premium Member

    4,182
    1,013
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,435
    Local Time:
    8:09 AM
    1.11
    10.2
    Yes.
     
  5. eva2000

    eva2000 Administrator Staff Member

    34,242
    7,576
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,645
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    Pretty much what @RoldanLT said though I'll elaborate on the centmin.sh menu option 22 options

    In context of Wordpress caching for centmin.sh menu option 22 wordpress auto installer for Centmin Mod 123.09beta01 and newer, you have 3 offered wordpress caching options:
    1. Redis Nginx Level Caching - centmin.sh menu option 22 will auto install redis if not detected if you choose this in centmin.sh menu option 22 setup. Otherwise, need to install redis yourself.
    2. KeyCDN Cache Enabler for full page static html caching (safest choice for balance of performance and reliability)
    3. WP Super Cache for full page static html caching
    1. redis caching at nginx level can be fastest but needs fine tuning and deep understanding of your web app and it's plugins to get right i.e. woocommerce etc. So can be problematic too. Most caching is are for guest caching only.

    2. keycdn cache enabler wp plugin - better version of wp super cache for full page static caching of wordpress. Least problematic and closest to set and forget with maybe some tuning needed depending on wp plugins and site configuration. Config is for guest caching only.

    And regardless of caching method, having right server(s) hardware and configuration and LEMP stack and system TCP level configurations to handle the traffic is a must otherwise regardless of caching used, it won't scale. So you would want non-OpenVZ based VPS like KVM or dedicated. Choosing OpenVZ VPS will limit your scalability.

    FYI, all caching methods = generally higher memory consumption and sometimes higher cache related cpu consumption. The goal of caching in context of wordpress is usually to lessen the load placed on php/php-fpm as that is the weakest part of any LEMP/LAMP setup in terms of scalability. So sometimes caching isn't necessary faster just scales better in high concurrent traffic environments.

    You can see centmin.sh menu option 22 wordpress installed demo and benchmarks on my Wordpress7 demo site.
     
  6. Max

    Max Member

    37
    3
    8
    Feb 17, 2018
    Ratings:
    +4
    Local Time:
    1:09 AM
    how to aktivate redis cache on old centminmod wordpress site ?
     
  7. eva2000

    eva2000 Administrator Staff Member

    34,242
    7,576
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,645
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    You'd have to remove any previous wordpress caching and then setup redis nginx level caching.

    There's 3 (4th optional) steps
    1. install redis server
    2. install redis object cache wp plugin <-- probably skip this as it's known to cause issues when updating wp admin settings
    3. setup nginx level redis full page caching
    4. optional step setup PHP session storage via redis
    You can also do a 2nd dummy centmin.sh menu option 22 domain test site and choose redis nginx level caching to let centmin.sh install redis server first so you don't have to do first step above. Then you can compare dummy domain's nginx vhost config to your live wordpress nginx vhost to get a better idea of what needs changing.
     
  8. Kuro

    Kuro New Member

    13
    1
    3
    Feb 8, 2018
    Ratings:
    +1
    Local Time:
    7:09 AM
    1.13.9
    10.x
    Hey, eva update new redis php
    Redis Version 3.1.6 update 4.0.2 stable 2018-04-25 for Centmin Mod
    command 13 lastest 3.1.6 :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    34,242
    7,576
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,645
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    php redis 4.x branch has breaking code changes compared to 3.1.6 so stick with 3.1.6 for now PECL :: redis Changelog
    AFAIK, php redis 4.x is for PHP 7.3.x
     
    • Like Like x 1
    • Agree Agree x 1
  10. Kuro

    Kuro New Member

    13
    1
    3
    Feb 8, 2018
    Ratings:
    +1
    Local Time:
    7:09 AM
    1.13.9
    10.x
    I installed redis server + extension and i using w3tc for wordpress site. Every time I post a new post and purge all cache with w3tc and nothing changes on homepage (for Gest). Only when I flush redis cache with cmd : redis-cli flushall but every time my CPU is 100% because realtime online ~ 3k user. Do you have any solutions? Thanks!
    My VPS: 6 Core , Ram 16gb (Vultr)
     
  11. eva2000

    eva2000 Administrator Staff Member

    34,242
    7,576
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,645
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  12. deltahf

    deltahf Premium Member Premium Member

    242
    113
    43
    Jun 8, 2014
    Ratings:
    +179
    Local Time:
    8:09 PM
    I have used the Pro version of Comet Cache (static HTML caching plugin) in combination with Memcached for years and the performance is great.

    It's easy to invalidate/refresh the cache in the WP control panel, or disable the cache based on certain user conditions if you want to write your own plugins or customize your theme pages. It has also handled high-traffic events very well.
     
..