Welcome to Centmin Mod Community
Register Now

Wordpress Faster caching method?

Discussion in 'Blogs & CMS usage' started by pamamolf, Aug 26, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hi

    I am looking for the faster caching method for php and data for Wordpress... :)

    Is the best option to use only W3 total cache or maybe something else or a combination of two?

    Thanks :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
  4. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    never used Wordfence so not even sure it works with Nginx web servers ?
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
  6. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haven't benchmarked but WP Super Cache is simpler to setup for Nginx and Nginx's strength is static file performance which basically is what WP Super Cache is - creating static files :)

    W3 Total cache has grown too complicated and alot of the features don't apply to Nginx as it already sets expires headers for static files, already has gzip compression for static files etc.
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Great thanks George :)

    I hope that you will find a few minutes to test this Wordfence plugin and give as some ideas as at the moment i do not have a server for test and in general i am not good with benchmarking :(
     
  8. Peter Downey

    Peter Downey Member

    64
    24
    8
    May 28, 2014
    Ratings:
    +27
    Local Time:
    6:37 AM
    If you're planning on using supercache, I'd recommend looking into wp widget cache as well. It works in alongside it and helps reduce database queries.
    It's very simple to configure also, just add the desired cache time for each widget on the widget page and you're set. Some widgets shouldn't be cached, and some you want the cache to clear when you make changes, so the way they handle configuration adds a lot of versatility.

    This doesn't replace supercache, it simply adds to it. On a previous page I tested that was making about 140 database queries on front page load, widget cache reduced that number to under 100.
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Ok thanks :)
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks @Peter Downey almost forgot about Wordpress Widget Cache :)
     
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    1:37 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    I was ask for Wordfence if is is using opcode caching or data caching so i can see wich other software i can use with it without any answer at the moment .... :(

    As if it is opcode cacher i don't want to use two plugins for the same thing :)
     
  12. Mike Guista

    Mike Guista New Member

    25
    10
    3
    Sep 15, 2014
    Ratings:
    +10
    Local Time:
    3:37 AM
    1.7.6
    10.x
    Only a small problem with WP Super Cache is it doesn't update the homepage when a new post is made. I need to clear cache manually and restart PHP-FPM for page update.

    WP-FFPC works great but it sucks when a site has a large number of posts (5k+). It takes ages to login to wp-admin when the site has large number of posts. I've used W3tc with great performance too. However, WP Super cache is a almost similar to w3tc in my experience.
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no sure if Nginx helper would help Wordpress - Nginx Helper Wordpress Plugin | Centmin Mod Community ?
     
  14. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:37 AM
    1.8.0
    5.6
    It's been a while. What's the result of this? I'm thinking of switching off ngx_pagespeed and switching to WP Super Cache or WordFence.

    I have a large WordPress Multisite and one of the sites has a very active bbPress forum with tens of thousands of posts, so I need to pick the right caching option for me.
     
  15. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:37 AM
    1.8.0
    5.6
    I wanted to let everyone know my results on this.

    I have a 2 CPU / 2 GB RAM VPS on Vultr. I'm running four WordPress installations and one of them is WordPress Multisite with a massive bbPress forum.

    I was originally using the recommended "fastest" caching method, which was all server-side (pagespeed stuff). But now that my website is getting a lot more traffic (we podcast about a TV show that is back in season), PHP-FPM was crashing at least once per day. On the heaviest traffic days, it would PHP-FPM would crash every 15 minutes or so. A simple fpmrestart would temporarily fix it. Looking at the FPM logs, the only errors were recommending I raise the number of children. I had it as high as 70 and as low as 5, but everything would continue to crash.

    After seeing this thread, I gave WordFence with Falcon a try. But remember that I'm on a Multisite with a massive bbPress forum? Every time someone would post in the forum, I think Falcon would clear the entire site's cache again, so that didn't seem to be working well.

    I switched to the WP Super Cache method and I haven't had a crash since then! Now, PHP-FPM isn't complaining about the number of children anymore, either, but that's understandable since WPSC is serving static files.

    For my forum, I just had to enable WPSC's option to not cache for logged in users.
     
  17. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    8:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Daniel J. Lewis get info and feedback.. yup WP Super Cache paired with Nginx is fast as it's static file caching and Nginx is awesome at that :)
     
  18. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    3:37 AM
    I just looked into this a bunch, and it's now possible with WP-FFPC to use Nginx Memcache module. This means that like WP-Supercache, Nginx no longer has to spawn a PHP process to serve data.

    However, unlike WP-Supercache, data will now be cached to RAM (memcache) rather than disk, so WP-FFPC with Nginx Memcache backend should be a good bit faster than WP-Supercache. Even with SSDs, disk reads are still a lot slower than memory reads.

    However, using a different backend with WP-FFPC will likely be slower than WP-Supercache as then it has to spawn a PHP process.
     
    Last edited: Apr 25, 2015
  19. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    6:37 PM
    Mainline
    10.2
  20. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    3:37 AM