{"id":4401,"date":"2026-02-24T11:14:12","date_gmt":"2026-02-24T09:14:12","guid":{"rendered":"https:\/\/fastpixel.io\/?post_type=docs&#038;p=4401"},"modified":"2026-03-05T23:43:45","modified_gmt":"2026-03-05T21:43:45","password":"","slug":"fastpixel-object-cache","status":"publish","type":"docs","link":"https:\/\/fastpixel.io\/fr\/docs\/fastpixel-object-cache\/","title":{"rendered":"FastPixel &#8211; Object Cache"},"content":{"rendered":"<p>Object Cache keeps frequently used data ready in memory, so your site serves repeat requests faster, reduces database and network overhead, and feels snappier for visitors.<\/p>\n\n\n\n<p>Object Cache is supported in FastPixel. You can add your Redis or Memcached connection details in <strong>FastPixel > Object Cache<\/strong>, and the plugin will connect and use the object caching service provided by your hosting provider. <\/p>\n\n\n\n<p>Please make sure the Redis or Memcached PHP extension is enabled on your server, otherwise the object cache feature cannot be used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Redis DB ID (Redis only)<\/h2>\n\n\n\n<p>Specifies which <strong>Redis database index<\/strong> should be used to store cached data.<\/p>\n\n\n\n<p>Redis supports multiple logical databases inside the same Redis instance, each identified by a numeric ID (usually <code>0\u201315<\/code> by default). This option allows the cache to be isolated from other applications using the same Redis server.<\/p>\n\n\n\n<p><strong>Example:<\/strong><br>If your hosting provider recommends using database <code>1<\/code>, the plugin will store all cached objects in Redis DB <code>1<\/code> instead of the default <code>0<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Default Object Lifetime (seconds)<\/h2>\n\n\n\n<p>Defines how long cached objects remain in the cache <strong>before they expire automatically<\/strong>.<\/p>\n\n\n\n<p><strong>Example<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>3600<\/code> \u2192 objects expire after <strong>1 hour<\/strong><\/li>\n\n\n\n<li><code>86400<\/code> \u2192 objects expire after <strong>1 day<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Why this matters<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lower values keep the cache fresher but may reduce cache efficiency<\/li>\n\n\n\n<li>Higher values improve performance but cached data may remain longer<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Global Groups (one per line)<\/h2>\n\n\n\n<p>Lists cache groups that should be treated as <strong>global across all sites in a multisite network<\/strong>.<\/p>\n\n\n\n<p>Normally, object cache keys are separated per site in a multisite installation. Global groups allow certain cached data to be <strong>shared across all sites in the network<\/strong>.<\/p>\n\n\n\n<p>Each group should be entered <strong>on a separate line<\/strong>.<\/p>\n\n\n\n<p><strong>Why this matters<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prevents duplication of shared network data<\/li>\n\n\n\n<li>Improves performance in multisite environments<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Do Not Cache Groups (one per line)<\/h2>\n\n\n\n<p>Defines cache groups that should <strong>never be stored in the object cache<\/strong>.<\/p>\n\n\n\n<p>Any objects belonging to these groups will bypass the object cache and be retrieved directly from the database.<\/p>\n\n\n\n<p>Each group should be listed <strong>on a separate line<\/strong>.<\/p>\n\n\n\n<p><strong>Why this matters<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Avoids caching data that changes constantly<\/li>\n\n\n\n<li>Prevents issues with sensitive or highly dynamic information<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Use persistent connections<\/h2>\n\n\n\n<p>Keeps the connection to the Redis or Memcached server <strong>open between requests<\/strong>, instead of opening a new connection each time.<\/p>\n\n\n\n<p>Persistent connections reduce the overhead of repeatedly establishing connections to the cache server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cache WP-Admin operations<\/h2>\n\n\n\n<p>Allows object caching to be used <strong>inside the WordPress admin dashboard<\/strong>.<\/p>\n\n\n\n<p>By default, some caching setups avoid caching admin operations to prevent issues with dynamic or user-specific data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Store transients in object cache<\/h2>\n\n\n\n<p>Stores <strong>WordPress transients<\/strong> in the object cache instead of the database.<\/p>\n\n\n\n<p>Transients are temporary pieces of cached data used by WordPress and plugins.<\/p>\n\n\n\n<p>Normally they are stored in the <code>wp_options<\/code> table, but when object caching is enabled they can be stored in Redis or Memcached instead.<\/p>","protected":false},"excerpt":{"rendered":"<p>Object Cache keeps frequently used data ready in memory, so your site serves repeat requests faster, reduces database and network overhead, and feels snappier for visitors. Object Cache is supported in FastPixel. You can add your Redis or Memcached connection details in FastPixel > Object Cache, and the plugin will connect and use the object [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"doc_category":[13],"doc_tag":[],"class_list":["post-4401","docs","type-docs","status-publish","hentry","doc_category-fastpixel-website-accelerator"],"blocksy_meta":[],"year_month":"2026-04","word_count":460,"total_views":"59","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian","author_nicename":"adrian","author_url":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"doc_category_info":[{"term_name":"FastPixel Website Accelerator","term_url":"https:\/\/fastpixel.io\/fr\/docs-category\/fastpixel-website-accelerator\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"Adrian","author_link":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Object Cache keeps frequently used data ready in memory, so your site serves repeat requests faster, reduces database and network overhead, and feels snappier for visitors. Object Cache is supported in FastPixel. You can add your Redis or Memcached connection details in FastPixel > Object Cache, and the plugin will connect and use the object\u2026","_links":{"self":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/comments?post=4401"}],"version-history":[{"count":3,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4401\/revisions"}],"predecessor-version":[{"id":4432,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4401\/revisions\/4432"}],"wp:attachment":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/media?parent=4401"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_category?post=4401"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_tag?post=4401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}