4 ms·
If you enable WordPress's object cache, it should get most page views down to a couple or even zero queries. It's poorly written themes and plugins where proble
by Viper007Bond 9y ago
If you enable WordPress's object cache, it should get most page views down to a couple or even zero queries. It's poorly written themes and plugins where problems can arise.
The easy solution is to just enable full page caching. On single server setups, something like WP Super Cache works well. On distributed setups like WordPress.com, this is more appropriate: https://github.com/Automattic/batcache https://github.com/Automattic/batcache
- tyingq 9y agoThe object cache doesn't persist across HTTP requests. You have to install some 3rd party plugin for that.[1] [1]https://codex.wordpress.org/Class_Reference/WP_Object_Cache https://codex.wordpress.org/Class_Reference/WP_Object_Cache
- Viper007Bond 9y agoCorrect, which is what I meant by enabling it. Apologies for not being clearer. It used to persistent via writing objects to the filesystem but it actually ended up being _slower_ in some configurations.
- munchai 9y agoHaving an object cache is one layer. However, caching SQL in conjunction could speed up application response times, depending on the behavior of the workload. I have seen the performance increase by 4x by caching SQL.