Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Which plugins to use for better performance for Wordpress?

Discussion in 'Blogs & CMS usage' started by pamamolf, Feb 2, 2020.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,697
    357
    83
    May 31, 2014
    Ratings:
    +688
    Local Time:
    11:18 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hello

    Looking for the best options to use for best performance for Wordpress :)

    Should i use Redis? Which wordpress plugins combination do you recommend me?

    Thank you
     
  2. rdan

    rdan Well-Known Member

    4,863
    1,160
    113
    May 25, 2014
    Ratings:
    +1,740
    Local Time:
    5:18 PM
    Mainline
    10.2
    WP Super Cache or KeyCDN Cache Enabler.
     
    • Informative Informative x 1
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,697
    357
    83
    May 31, 2014
    Ratings:
    +688
    Local Time:
    11:18 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Should i use also Redis?

    Any other plugins that will help?

    @eva2000

    As you are using Wordpress which ones do you recommend me?
     
  4. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    7:18 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    All the performance and page speed Wordpress plugins you need will be found in Centmin Mod 123.09beta01 and higher's default centmin.sh menu option 22 Wordpress auto installer routines. See https://community.centminmod.com/th...l-vs-centmin-sh-menu-option-22-install.15435/ and example live Wordpress blog of mine at https://servermanager.guide/ and Centmin Mod Wordpress install guide at https://servermanager.guide/122/how-to-install-wordpress-on-centmin-mod-lemp-stack-guide/.

    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. Best combined with Autoptimize WP plugin + Autoptimize Gzip companion plugin
    2. KeyCDN Cache Enabler for full page static html caching (safest choice for balance of performance and reliability). Best combined with Autoptimize WP plugin + Autoptimize Gzip companion plugin
    3. WP Super Cache for full page static html caching. Best combined with Autoptimize WP plugin + Autoptimize Gzip companion plugin
    4. PHP-FPM Fastcgi_cache full page static HTML guest cache in private development as of writing so not available yet. Best combined with Autoptimize WP plugin + Autoptimize Gzip companion plugin
    Code (Text):
    Default is to install KeyCDN WP Cache Enabler Plugin as it is more
    stable and reliable than WP Super Cache and Redis Cache.
    Redis cache may have issues with caching due to long 6hr cache TTL
    Fastcgi_cache (PHP-FPM) will have best performance
    You can select which caching method to use below:
    
    --------------------------------------------------------
    Wordpress Caching
    --------------------------------------------------------
    1) KeyCDN Cache Enabler
    2) Redis Nginx Level Caching
    3) WordPress Super Cache
    4) Fastcgi_cache (PHP-FPM)
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 4
    
    you selected option 4 (Fastcgi_cache PHP-FPM) [wpscache=fastcgicache]


    1. Both PHP-FPM fastcgi_cache and Redis Nginx level caching 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. Highly recommended, if you just want a Wordpress cache method that just works without headaches.

    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 with Redis Nginx level cache + Cloudflare and live Wordpress blog at https://servermanager.guide/ with PHP-FPM fastcgi_cache + Cloudflare.
     
    • Winner Winner x 1
  5. tininho

    tininho Member

    69
    21
    8
    May 22, 2019
    Nordic
    Ratings:
    +43
    Local Time:
    11:18 AM
    These are the fastest choice for me (free)

    For static sites / not-logged-in-users (Cloudflare):
    WP Cloudflare Super Page Cache
    You can cache your whole page in Cloudflare, with minimal effort.

    Add Cloudflare workers
    https://wordpress.org/plugins/edge-cache-html-cloudflare-workers
    Currently benchmarking cases when this is useful. Does anybody here have more experience on this?

    With this setup I would go with Centminmod cache option 1 (KeyCDN) and use EWWW image optimizer to have images squeezed / Webp conversion (unless you have Cloudflare Pro/Business).

    For logged-in-users (work/learning in progress):
    - Redis as an object cache (cache database queries, not full page)
    - Use Cloudflare to cache, but be careful with which folders you cache (for example /uploads), more here: https://community.cloudflare.com/t/cache-everything-with-wordpress/556/69

    Additionally exclude useless CSS and JS files registered by themes and plugins.
    Gonzales - speed up WordPress (paid - robust, recommended)
    Clearfy – WordPress optimization plugin and disable ultimate tweaker (free - don't use it myself)

    Personally I don't use autoptimize but that is useful in some cases (badly coded themes/plugins). When you use well coded theme such as Genesis Framework, Generate Press, Astra or even OceanWP I don't think you need autoptimize?
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    7:18 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yes if you can get Cloudflare Worker caching working it does wonders. Testing on https://servermanager.guide/ right now too for my own private use.

    Interesting haven't heard of that one yet. Thanks for sharing ! However, concern is requiring your Cloudflare account wide API key can be security issue as it gives access to all your CF acccounts' web sites. It's better to use Cloudflare's new API token keys which can be restricted to specific Cloudflare features and sites/zones and not entire Cloudflare account.

    Autoptimize will always help especially 2.6+ has image lazy load support too. I switched https://servermanager.guide/ from Google Native lazy loading (manually added to functions.php) to Autoptimize 2.6+ enabled lazy loading as well. So far looking good https://community.centminmod.com/th...ermanager-guide-journey-for-page-speed.19108/ :D
     
    • Like Like x 1
  7. tininho

    tininho Member

    69
    21
    8
    May 22, 2019
    Nordic
    Ratings:
    +43
    Local Time:
    11:18 AM
    You are ofc right, they should implement API tokens for that plugin.

    As Cloudflare is pricing the Bypass Cache on Cookie out of reach (200USD / month), I am forced to try find another way. This plugin has the following options:

    Capture.PNG

    I am wondering whether this would suffice for dynamic sites, such as Woocommerce.
    Additional page rules on Cloudflare costs 1 USD / month / page rule, so I am currently going this way with my try outs.
     
  8. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    7:18 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    see WP Cloudflare Super Page Cache
     
  9. tininho

    tininho Member

    69
    21
    8
    May 22, 2019
    Nordic
    Ratings:
    +43
    Local Time:
    11:18 AM
    As these limitations are not mentioned or specified, I am afraid I must try :)
     
    • Like Like x 2
  10. EckyBrazzz

    EckyBrazzz Active Member

    854
    173
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +317
    Local Time:
    6:18 AM
    Latest
    Latest
    I noticed that on many sites the Google Native lazy loading did not work, especially with sliders, so had to use to Auto-Optimize option for these sites.

    Still use it together with the WP-Rocket & SatelliteWP/rocket-nginx and can tell it's blazing fast.

    Works perfect with Cloudflare & Wp MultiSite. (sorry still have to post the config).
     
  11. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    7:18 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    it's due to the criteria coded by Google as to when to lazy load and when not to and it's dependent on internet speed detected by visitor i.e. mobile detected speeds will load all images within first 3000px vertical pixels which is to lengthy !

    I also switched from Google native lazy load via functions.php edit to Autoptimize 2.6+ lazy load via lazysizes for my Wordpress blog at https://servermanager.guide/ :)
     
  12. asperty

    asperty New Member

    16
    15
    3
    Apr 13, 2019
    Ratings:
    +19
    Local Time:
    11:18 AM
    1.17.1
    10.3
    +1
    I could never get cache enabler and autoptimize to equal the speed of this combo. Maybe it has to do with the critical css which autoptimize doesn't include as standard