What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?

I am optimizing my WordPress website. I am using 2 WordPress plugins right now. First one is ‘Autoptimize’ for optimizing CSS, JS, and HTML. And another one is ‘WP Super Cache’ for caching pages.

While reading about WordPress optimization, I came across another term called ‘Object Caching’. But I still can’t figure out the difference between ‘Page Cache’ and ‘Object Cache’.

Can someone help me understand this? Is ‘Object Cache’ needed even if I am using ‘Page Cache’?

2 Answers
2

Page cache is the entire rendered html output for a page. It’s useful for serving static content like a WordPress post.

Object cache is often the resource-heavy pieces that make up a page. For example, When you use WP_Query each result would be stored in object cache. This prevents WordPress from hitting the database every time WP_Query is used.

For example, if you use ajax for pagination, the next page of results would be stored in object cache and not in page cache.

Leave a Comment