{
    "title": "Object cache",
    "description": "An object cache keeps database results in memory so WordPress can reuse them. How it differs from a page cache and how to check.",
    "url": "https://ursy.com/wiki/object-cache/",
    "canonical": "https://ursy.com/wiki/object-cache/",
    "markdown": "https://ursy.com/wiki/object-cache/index.md",
    "json": "https://ursy.com/wiki/object-cache/index.json",
    "published": "2026-11-24T19:28:24+00:00",
    "updated": "2026-11-26T15:39:46+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/object-cache/",
    "headings": [
        {
            "level": 2,
            "text": "How it works in WordPress",
            "id": "how-it-works-in-wordpress",
            "url": "https://ursy.com/wiki/object-cache/#how-it-works-in-wordpress"
        },
        {
            "level": 2,
            "text": "How it differs from a page cache",
            "id": "how-it-differs-from-a-page-cache",
            "url": "https://ursy.com/wiki/object-cache/#how-it-differs-from-a-page-cache"
        },
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/wiki/object-cache/#why-it-matters"
        },
        {
            "level": 2,
            "text": "What hosts said on 24 November 2026",
            "id": "what-hosts-said-on-24-november-2026",
            "url": "https://ursy.com/wiki/object-cache/#what-hosts-said-on-24-november-2026"
        },
        {
            "level": 2,
            "text": "How to check yours",
            "id": "how-to-check-yours",
            "url": "https://ursy.com/wiki/object-cache/#how-to-check-yours"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/object-cache/#sources"
        }
    ],
    "links": [
        {
            "text": "affiliate disclosure",
            "url": "https://ursy.com/affiliate-disclosure/",
            "internal": true
        },
        {
            "text": "edge cache",
            "url": "https://ursy.com/wiki/edge-cache/",
            "internal": true
        },
        {
            "text": "PHP worker",
            "url": "https://ursy.com/wiki/php-workers/",
            "internal": true
        },
        {
            "text": "Rocket.net",
            "url": "https://rocket.net/solutions/woocommerce-hosting/",
            "internal": false
        },
        {
            "text": "caching",
            "url": "https://ursy.com/wiki/caching/",
            "internal": true
        },
        {
            "text": "time to first byte",
            "url": "https://ursy.com/wiki/time-to-first-byte/",
            "internal": true
        },
        {
            "text": "hosting",
            "url": "https://ursy.com/hosting/",
            "internal": true
        },
        {
            "text": "WordPress developer reference: WP_Object_Cache",
            "url": "https://developer.wordpress.org/reference/classes/wp_object_cache/",
            "internal": false
        },
        {
            "text": "Kinsta Redis docs",
            "url": "https://kinsta.com/docs/wordpress-hosting/caching/redis-cache/",
            "internal": false
        },
        {
            "text": "WP Engine cache support guide",
            "url": "https://wpengine.com/support/cache/",
            "internal": false
        }
    ],
    "words": 394,
    "text": "An object cache stores the results of database lookups in memory, so WordPress can reuse them instead of asking the database again. Disclosure: We earn a fee if you sign up through our links. It costs you nothing extra and doesn’t change what we recommend. (see our affiliate disclosure) How it works in WordPress WordPress has an object cache built in, but by default it only lasts for one page load. The developer docs say “By default, the object cache is non-persistent”, and the data lives “in memory only and only for the duration of the request”. The next visitor starts from zero. You can swap in a lasting one “by placing files in the wp-content folder”. Redis is the common choice: the Redis Object Cache plugin “provides a persistent backend for the WordPress object cache”. How it differs from a page cache A page cache, such as an edge cache, stores the whole finished page. That works for pages everyone sees the same. A basket or account page is different for each person, so it cannot be stored whole. An object cache still helps there, because the product details, settings and menus inside the page are the same for everyone. Why it matters Fewer database trips mean each PHP worker finishes sooner. That matters most on shops, member sites and the WordPress admin, where little can be page cached. What hosts said on 24 November 2026 Rocket.net: “Rocket.net includes Redis for free.” Kinsta: Redis is an add-on; “The Redis caching add-on costs $100 per month per site.” WP Engine: an optional object cache; it did not say whether it uses Redis or Memcached. SiteGround: we found no Redis or Memcached wording on the pages we read. How to check yours Ask your host whether a persistent object cache, such as Redis, is switched on for your site, and whether it costs extra. Look in the wp-content folder for an object cache file placed there by your host or a plugin. With none, WordPress uses its one-request cache. Compare time to first byte on an uncached page before and after turning it on. Our hosting page explains why we wanted Redis included. Sources WordPress developer reference: WP_Object_Cache, checked 24 November 2026 Rocket.net WooCommerce hosting, checked 24 November 2026 Kinsta Redis docs, checked 24 November 2026 WP Engine cache support guide, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/object-cache/"
}