• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

Redis vs Memcache vs APCu – object cache comparisons

WordPress hosting May 1, 2018 by Johnny 8 Comments

Yes, you should definitely use object caching for your webserver…especially for dynamic page generation. It speeds things up incredibly and can do wonders for page speed performance.

Redis and memcache are more or less interchangeable. Redis is considered the newer/faster option but real world performance hasn’t always reflected that sentiment. I naturally would try Redis first and see if it’s super fast, no weird issues. If Redis isn’t totally smooth, go straight to memcache. (Or for a totally hassle-free option, just go memcache first.) And then if you want to venture further, go with APCu. APCu is faster than both Redis/memcache but can be unstable or total memory-hog.

My advice is to try all of them and test your site for yourself. Afterwards, simply delete the ones you don’t need. You can install these modules easily…just make sure you use a version that’s supported by whatever application you’re using.

The big three in the world of object-caching:

  • Redis – fast but might not be supported everywhere. Possibly the fastest/best option if you can get it to work.
  • Memcache – the old (but very stable standard). Most people who haven’t played with Redis yet will go with this. I love it.
  • APCu – very fast because it doesn’t write anything to the disk, simply stores it as is. Can cause problems or performance-loss in certain environments (clusters, server restarts, low memory, etc). FYI: some people say APCu is outdated and that you shouldn’t use it.

Some old ones:

  • APC – abandoned and now succeeded by APCu (which supports php 7.x).
  • XCache – abandoned.

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress hosting

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

How to Deal with Difficult Clients

Favorite motivational quote

Disable WP-Cron and use real CRON JOB

How do you collect customer emails?

How Do You Stay Motivated?

DIY Mattress review and buying guide

Reader Interactions

8 Comments

  1. Hifihedgehog

    May 16, 2019 at 11:11 am

    I love your articles! This is exactly my observation as well. For some reason, APCu actually causes slow download speeds for me in NextCloud. I use LiteSpeed’s specialized version of Memcached, LSMCD, though, and it completely resolves the issue. By the way, LSMCD has high availability and data persistence. For its ease of use plus this, I prefer LSMCD over Redis by a long shot.

    Reply
  2. Umair Ahmed

    June 8, 2020 at 1:40 am

    APCu is incompatible with IIS and Nginx on Windows servers.

    Reply
  3. Alen

    September 15, 2020 at 9:46 am

    Nice article.. I’m using OPcache solution since that only available on my hosting provider. APC/APCu is too old and not reliable using with PHP 7, docket cache plugin do the good jobs and works for me.

    Reply
    • Bert

      December 7, 2022 at 2:38 am

      Alen, OPCACHE and MEMCACHED/APCU/REDIS are two different things (front end caching vs database caching).

      You can (you should in fact) install OPCACHE and MEMCACHED together for instance.

      Regards

      Reply
  4. Aditya Nath Jha

    January 7, 2023 at 10:03 pm

    I am using Redis with W3 Total Cache, how do I know if my Redis is working properly or not? In the test connection button it does pass all tests with flying colours tho

    Reply
  5. Anon

    February 15, 2023 at 12:08 pm

    APCu supports php 8.x now

    Reply
  6. ca

    October 4, 2024 at 1:52 pm

    I agree. APCu is the fastest cache, according to my tests.
    It is not outdated and still the best solution, I think.

    Reply

Leave a Reply to Anon Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy