Greetings, Wordpress Wizard

Welcome to the first unified way to benchmark your hosting using simple Wordpress plugin.
A simple way to find out if your server is fast or needs an upgrade.

What is object cache in Wordpress?

Object cache is a set of functions, that allows theme and plugin developers to store different data using unique keys in a usually in-memory systems, like Redis or Memcached for faster access. Unlike database, to get information out of the object cache you need to know specific key, that you are looking for, but at the same time access to stored data is much more faster.

Wordpress offer natively offers functions for dealing with object cache, but unless you have a specific plugin, that connects to external cache daemon to store or retrieve data - all object cache will be stored inside running PHP process and data will be lost after request handling. Basically it means, that on a new request - object cache will be empty. And that's why you need external cache daemon and a plugin, that will actually work with it.

Since object cache itself is not bound to specific storage - Wordpress plugin repository offer various plugins, that utilize different methods for data storage - redis object cache, memcached, opcache and even file-based caching (it is hard to think, when this might be a good idea to have, but technology itself allows us to do it).

When use of object cache becomes critical

Modern server hardware has become very very fast. Even shared hosting nowadays often offers excellent performance. Not last to mention is number of other caching plugins, that allows you to cache individual pages or whole sites. Therefore you should understand, when you can really benefit from using object cache and when you should worry about its performance.

You should use object cache for dynamic parts of your Wordpress site, which may change due to other user actions and which therefore can not be statically cached.

The most common example is a webshop, where you can not statically store number of available products. Other example might be an online multiplayer game, where several gamers are interacting with an object, post or item. Use of external fast object cache can offload your database server and improve site responsivness.

Not all plugins are the same

Or why my object cache tests fail. - Yes. You may have object cache plugin, but benchmark tests still may show, that it is not working. Especially this is true for W3TotalCache. If you dig through the settings - you will find a setting, that enables object cache for logged users and wp-admin interface. This option is disabled by default.

This is bad, very bad and here is why - imagine, that for some visitors - data is being served from object cache and for some - directly from the database. There can occur situation, when these 2 visitors get different values. Or - for example - administrator updating information about a product, but customers still accessing or even updating wrong values. Therefore - you should make sure, that object cache, if active, works in all parts of your Wordpress.

Object cache on a shared hosting servers

Without going too deep into technology - I would not suggest enabling object cache with Redis or Memcached backends when being hosted on a shared hosting due to security reasons. In most cases your data will not be protected and may be accesses or modified by others. If you feel, that your website is slow - simply look for faster hosting company. Object cache would only give you fractional improvement on a specific use case.

Fast CPU, faster disk and faster MySQL database would have much more greater effect on your website performance, than object cache, especially in a shared hosting environment.

Your questions, comments and suggestions are kindly welcome at [email protected].

Total tests

83973

Global stats

2024
Average score

7.74

PHP 5.6
0.01%
PHP 7.0
0.02%
PHP 7.1
0.02%
PHP 7.2
0.10%
PHP 7.3
0.55%
PHP 7.4
13.25%
PHP 8.0
7.73%
PHP 8.1
30.63%
PHP 8.2
29.04%
PHP 8.3
18.65%

2023
Average score

7.38

PHP 5.4
0.01%
PHP 5.6
0.03%
PHP 7.0
0.06%
PHP 7.1
0.05%
PHP 7.2
0.22%
PHP 7.3
0.66%
PHP 7.4
22.83%
PHP 8.0
17.71%
PHP 8.1
32.86%
PHP 8.2
24.24%
PHP 8.3
1.32%

2022
Average score

7.4

PHP 5.4
0.00%
PHP 5.6
0.14%
PHP 7.0
0.18%
PHP 7.1
0.11%
PHP 7.2
0.60%
PHP 7.3
2.45%
PHP 7.4
48.84%
PHP 8.0
20.48%
PHP 8.1
26.84%
PHP 8.2
0.36%

2021
Average score

8.02

PHP 5.4
0.01%
PHP 5.6
0.39%
PHP 7.0
0.30%
PHP 7.1
0.11%
PHP 7.2
2.01%
PHP 7.3
9.83%
PHP 7.4
75.31%
PHP 8.0
11.21%
PHP 8.1
0.83%

2020
Average score

7.82

PHP 5.4
0.03%
PHP 5.6
1.19%
PHP 7.0
2.53%
PHP 7.1
3.06%
PHP 7.2
11.76%
PHP 7.3
33.45%
PHP 7.4
47.27%
PHP 8.0
0.71%

2019
Average score

7.84

PHP 5.6
0.66%
PHP 7.0
5.96%
PHP 7.1
4.64%
PHP 7.2
29.14%
PHP 7.3
53.64%
PHP 7.4
5.96%

Public wall of benchmarked sites

Developed by Anton Aleksandrov - hosting.guru - 2024