{"id":323381,"date":"2026-10-07T15:36:13","date_gmt":"2026-10-07T10:36:13","guid":{"rendered":"https:\/\/wpbrigade.com\/?post_type=docs&#038;p=323381"},"modified":"2026-10-07T15:36:14","modified_gmt":"2026-10-07T10:36:14","password":"","slug":"related-posts-thumbnails-cache","status":"publish","type":"docs","link":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/","title":{"rendered":"How the Cache Works in Related Posts and Thumbnails"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every time a visitor opens a post, the <a aria-describedby=\"wpb-a11y-new-tab\" href=\"https:\/\/wpbrigade.com\/products\/related-posts\/\" data-type=\"link\" data-id=\"https:\/\/wpbrigade.com\/products\/related-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Related Posts Thumbnails plugin<\/a> may need to determine which posts are related. On a large site, that lookup can add extra database queries to a page load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To keep your site fast, the plugin includes a built-in cache that remembers the related posts it has already found. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this documentation, we explain what the cache stores, when it refreshes automatically, and how to clear it manually when you need to.<\/p>\n\n\n\n<h2 id=\"h-what-the-cache-does\" class=\"wp-block-heading\">What the Cache Does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When the cache is enabled, the plugin saves the <strong>list of related post IDs<\/strong> for each post the first time it is viewed. On the next visit, the plugin reuses that saved list instead of searching your database again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin saves only the list of related posts. The thumbnails, titles, excerpts, colors, and layout are still built fresh on every page load, so any change you make to the look of your related posts shows up straight away.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-default wpbrigade-call-out has-border-color has-background-1-background-color has-background has-regular-font-size has-global-padding is-content-justification-center is-layout-constrained wp-container-core-group-is-layout-2e6c9ad6 wp-block-group-is-layout-constrained\" style=\"border-color:#c0ccda;border-width:1px;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;min-height:0px;margin-top:31px;margin-bottom:31px;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px\">\n<div class=\"wp-block-columns is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-9faa4fa7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:30px\">\n<figure role=\"none\" class=\"wp-block-image size-full is-resized has-custom-css wp-custom-css-b9194214\"><img decoding=\"async\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/06\/ideas-icon-wpbrigade.svg\" alt=\"\" class=\"wp-image-321583\" style=\"width:25px;height:auto\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\" style=\"margin-top:5px;margin-bottom:var(--wp--preset--spacing--0);font-size:clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.227), 16px);\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\"><strong>Tip for Beginners:<\/strong><\/mark><\/strong> Think of the cache as a shortlist. The plugin remembers <em>which<\/em> posts to show, but it always draws them using your latest settings.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 id=\"h-how-to-enable-or-disable-the-cache\" class=\"wp-block-heading\">How to Enable or Disable the Cache?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cache is turned on by default. To change it, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your WordPress Admin Dashboard.<\/li>\n\n\n\n<li>On the left menu, click on <strong>Related Posts<\/strong>.<\/li>\n\n\n\n<li>Open the <strong>General<\/strong> tab.<\/li>\n\n\n\n<li>Find the <strong>Cache related post IDs<\/strong> option and check or uncheck it.<\/li>\n\n\n\n<li>Click <strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6aceb45199e15&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6aceb45199e15\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1-1024x469.png\" alt=\"Related Posts Thumbnails cache settings in the WordPress General tab\" class=\"wp-image-323383\" srcset=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1-1024x469.png 1024w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1-300x137.png 300w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1-767x351.png 767w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1-1536x703.png 1536w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/RPT-Cache-Settings-1.png 1717w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Cache related post IDs option in the Related Posts Thumbnails General tab<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When the option is unchecked, the plugin looks up related posts on every page load, and the <strong>Purge RPT Cache<\/strong> link in the admin bar is hidden.<\/p>\n\n\n\n<h2 id=\"h-how-long-is-the-cache-kept\" class=\"wp-block-heading\">How Long Is the Cache Kept?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Saved related-post results remain cached for <strong>24 hours<\/strong>. After 24 hours, the cache expires, and the plugin generates fresh related posts the next time someone views the post.<\/p>\n\n\n\n<h2 id=\"h-when-does-the-cache-refresh-automatically\" class=\"wp-block-heading\">When Does the Cache Refresh Automatically?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In most cases, you don&#8217;t need to clear the cache by hand. It refreshes on its own in the following situations.<\/p>\n\n\n\n<h3 id=\"h-what-happens-to-the-cache-when-a-post-is-updated-or-deleted\" class=\"wp-block-heading\">What Happens to the Cache When a Post Is Updated or Deleted?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever you save, update, trash, or delete a post, the saved related posts for <strong>that post<\/strong> are cleared. Its related list is rebuilt the next time it is viewed.<\/p>\n\n\n\n<h3 id=\"h-what-happens-to-the-cache-when-related-post-settings-change\" class=\"wp-block-heading\">What Happens to the Cache When Related-Post Settings Change?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When you save changes to settings that affect <strong>which posts are selected<\/strong>, the plugin automatically clears the cache for the entire site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These settings include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Relation type: categories, tags, both, or custom taxonomies<\/li>\n\n\n\n<li>Display on Categories and Categories Will Appear in Related Posts<\/li>\n\n\n\n<li>Include Posts After<\/li>\n\n\n\n<li>Custom taxonomies<\/li>\n\n\n\n<li>Sort By<\/li>\n\n\n\n<li>Number of related posts<\/li>\n\n\n\n<li>Author related<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Settings that only change <strong>how related posts look<\/strong>, such as columns, colors, fonts, thumbnail size, title length, or excerpt length, do not require the cache to be cleared. These settings apply immediately because the layout itself is not cached.<\/p>\n\n\n\n<h3 id=\"h-what-happens-if-a-related-post-is-deleted-or-unpublished\" class=\"wp-block-heading\">What Happens If a Related Post Is Deleted or Unpublished?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If a saved related post is later unpublished or deleted, the plugin skips that post. If there are not enough valid related posts left, it automatically finds new ones.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This prevents visitors from seeing broken links.<\/p>\n\n\n\n<h2 id=\"h-things-to-keep-in-mind\" class=\"wp-block-heading\">Things to Keep in Mind<\/h2>\n\n\n\n<h3 id=\"h-new-posts-may-take-time-to-appear\" class=\"wp-block-heading\">New Posts May Take Time to Appear<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Publishing a new post refreshes the cache for that post only. Older posts that already have saved results will not show your new post as related until their cache expires (within 24 hours) or you purge the cache manually.<\/p>\n\n\n\n<h3 id=\"h-random-order-stays-the-same-within-the-cache-period\" class=\"wp-block-heading\">Random Order Stays the Same Within the Cache Period<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If <strong>Sort By<\/strong> is set to <strong>Random<\/strong>, the plugin picks the random posts once and reuses them for up to 24 hours. Visitors will see the same set of related posts for that period instead of a new mix on every reload. Choose <strong>Latest Posts<\/strong>, or turn the cache off, if you prefer a fresh selection on every visit.<\/p>\n\n\n\n<h3 id=\"h-page-caching-plugins-are-separate\" class=\"wp-block-heading\">Page Caching Plugins Are Separate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This cache works inside the Related Posts Thumbnails plugin. If you also use a page caching plugin or a server cache, clear that cache as well so visitors see the latest page.<\/p>\n\n\n\n<h2 id=\"h-how-to-clear-the-cache-manually\" class=\"wp-block-heading\">How to Clear the Cache Manually<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you want your changes to apply right away, for example, after publishing several new posts, you can clear the cache for the whole site:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your WordPress Admin Dashboard.<\/li>\n\n\n\n<li>In the top admin bar, click <strong>Purge RPT Cache<\/strong>.<\/li>\n\n\n\n<li>Wait for the confirmation message to appear.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6aceb4519ae8f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6aceb4519ae8f\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"283\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1-1024x283.png\" alt=\"Purge RPT Cache option in the WordPress admin bar\" class=\"wp-image-323385\" srcset=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1-1024x283.png 1024w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1-300x83.png 300w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1-768x212.png 768w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1-1536x424.png 1536w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/10\/Purge-Cache-Manually-1.png 1912w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Purge Cache link in the WordPress admin bar<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You will see the message <strong>Related posts cache purged successfully.<\/strong> On sites with a lot of content, you may instead see <strong>Related posts cache purge started. Cleanup will continue in the background.<\/strong> This is normal. The old results stop being used immediately, and the plugin removes the stored data in small batches while you work in the dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Purge Cache<\/strong> link is only visible to administrators, and only while the cache option is enabled.<\/p>\n\n\n\n<h2 id=\"h-for-developers\" class=\"wp-block-heading\">For Developers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can control the cache from code using these filters.<\/p>\n\n\n\n<h3 id=\"h-turn-the-cache-on-or-off\" class=\"wp-block-heading\">Turn the Cache On or Off<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'rpt_related_ids_cache_enabled', '__return_false' );<\/code><\/pre>\n\n\n\n<h3 id=\"h-change-how-long-results-are-kept\" class=\"wp-block-heading\">Change How Long Results Are Kept<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The value is in seconds. The example below keeps results for 12 hours.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'rpt_related_ids_cache_ttl', function () {\n    return 12 * HOUR_IN_SECONDS;\n} );<\/code><\/pre>\n\n\n\n<h3 id=\"h-change-the-cleanup-batch-size\" class=\"wp-block-heading\">Change the Cleanup Batch Size<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After a site-wide purge, old data is removed 500 rows at a time. On shared hosting, you can lower this number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'rpt_related_cache_batch_size', function () {\n    return 100;\n} );<\/code><\/pre>\n\n\n\n<h2 id=\"h-frequently-asked-questions\" class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n<div class=\"wpbrigade-faq-block\" data-version=\"v1\">\n\t\t\t<div\n\t\t\tclass=\"faq-item\"\n\t\t\tdata-faq-index=\"0\"\n\t\t\t\t\t>\n\t\t\t<h3 class=\"faq-heading\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"faq-question\"\n\t\t\t\t\taria-expanded=\"false\"\n\t\t\t\t\taria-controls=\"faq-content-0\"\n\t\t\t\t\tid=\"faq-toggle-0\"\n\t\t\t\t>\n\t\t\t\t\tWill the cache change how my related posts look?\t\t\t\t<\/button>\n\t\t\t<\/h3>\n\t\t\t<div\n\t\t\t\tclass=\"faq-content\"\n\t\t\t\tid=\"faq-content-0\"\n\t\t\t\trole=\"region\"\n\t\t\t\taria-labelledby=\"faq-toggle-0\"\n\t\t\t\thidden\n\t\t\t>\n\t\t\t\t<div class=\"faq-answer\">No. Only the list of related posts is saved. Your styles and layout are applied fresh on every page load.<\/div>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t<div\n\t\t\tclass=\"faq-item\"\n\t\t\tdata-faq-index=\"1\"\n\t\t\t\t\t>\n\t\t\t<h3 class=\"faq-heading\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"faq-question\"\n\t\t\t\t\taria-expanded=\"false\"\n\t\t\t\t\taria-controls=\"faq-content-1\"\n\t\t\t\t\tid=\"faq-toggle-1\"\n\t\t\t\t>\n\t\t\t\t\tIs it safe to leave the cache enabled?\t\t\t\t<\/button>\n\t\t\t<\/h3>\n\t\t\t<div\n\t\t\t\tclass=\"faq-content\"\n\t\t\t\tid=\"faq-content-1\"\n\t\t\t\trole=\"region\"\n\t\t\t\taria-labelledby=\"faq-toggle-1\"\n\t\t\t\thidden\n\t\t\t>\n\t\t\t\t<div class=\"faq-answer\">Yes. It is enabled by default and refreshes itself when you update posts or change relevant settings. Disable it only if you need a new random selection on every visit.<\/div>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t<div\n\t\t\tclass=\"faq-item\"\n\t\t\tdata-faq-index=\"2\"\n\t\t\t\t\t>\n\t\t\t<h3 class=\"faq-heading\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"faq-question\"\n\t\t\t\t\taria-expanded=\"false\"\n\t\t\t\t\taria-controls=\"faq-content-2\"\n\t\t\t\t\tid=\"faq-toggle-2\"\n\t\t\t\t>\n\t\t\t\t\tI changed a setting but still see the old related posts. What should I do?\t\t\t\t<\/button>\n\t\t\t<\/h3>\n\t\t\t<div\n\t\t\t\tclass=\"faq-content\"\n\t\t\t\tid=\"faq-content-2\"\n\t\t\t\trole=\"region\"\n\t\t\t\taria-labelledby=\"faq-toggle-2\"\n\t\t\t\thidden\n\t\t\t>\n\t\t\t\t<div class=\"faq-answer\">Click <strong>Purge RPT Cache<\/strong> in the admin bar, then clear any page caching plugin you use and reload the page.<\/div>\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n\n\n\n<h2 id=\"h-keep-the-related-posts-cache-enabled-for-better-performance\" class=\"wp-block-heading\">Keep the Related Posts Cache Enabled for Better Performance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Related Posts Thumbnails cache helps reduce the database work needed to find related posts, especially on sites with a lot of content. In most cases, you can leave it enabled and let the plugin refresh the cached results automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you make changes that affect which posts are selected and need the results to update immediately, use <strong>Purge Cache<\/strong> from the WordPress admin bar. If you also use page or server cache, clear it when needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For most sites, you can simply enable the cache and let the plugin handle the rest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every time a visitor opens a post, the Related Posts Thumbnails plugin may need to determine which posts are related. On a large site, that lookup can add extra database queries to a page load. To keep your site fast, the plugin includes a built-in cache that remembers the related posts it has already found. [&hellip;]<\/p>\n","protected":false},"author":9268,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_analytify_skip_tracking":false,"footnotes":""},"doc_category":[1491],"doc_tag":[],"class_list":["post-323381","docs","type-docs","status-publish","hentry","doc_category-related-posts-thumbnails"],"year_month":"2026-10","word_count":1018,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Editorial Team","author_nicename":"wpbrigade","author_url":"https:\/\/wpbrigade.com\/author\/wpbrigade\/"},"doc_category_info":[{"term_name":"Related Posts Thumbnails Docs","term_url":"https:\/\/wpbrigade.com\/documents\/related-posts-thumbnails\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.6 (Yoast SEO v28.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How the Cache Works in Related Posts and Thumbnails - WPBrigade<\/title>\n<meta name=\"description\" content=\"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How the Cache Works in Related Posts and Thumbnails\" \/>\n<meta property=\"og:description\" content=\"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"WPBrigade\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/WPBrigade\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-07T10:36:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"271\" \/>\n\t<meta property=\"og:image:height\" content=\"63\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpbrigade\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/\",\"name\":\"How the Cache Works in Related Posts and Thumbnails - WPBrigade\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ideas-icon-wpbrigade.svg\",\"datePublished\":\"2026-10-07T10:36:13+00:00\",\"dateModified\":\"2026-10-07T10:36:14+00:00\",\"description\":\"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ideas-icon-wpbrigade.svg\",\"contentUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ideas-icon-wpbrigade.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/related-posts-thumbnails-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpbrigade.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How the Cache Works in Related Posts and Thumbnails\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#website\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/\",\"name\":\"WPBrigade\",\"description\":\"WordPress Development Agency\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpbrigade.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#organization\",\"name\":\"WPBrigade\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Screen-Shot-2021-07-02-at-12.42.14-AM.png\",\"contentUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Screen-Shot-2021-07-02-at-12.42.14-AM.png\",\"width\":271,\"height\":63,\"caption\":\"WPBrigade\"},\"image\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/WPBrigade\",\"https:\\\/\\\/x.com\\\/wpbrigade\",\"https:\\\/\\\/www.instagram.com\\\/wpbrigade.agency\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpbrigade\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Wpbrigade\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How the Cache Works in Related Posts and Thumbnails - WPBrigade","description":"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/","og_locale":"en_US","og_type":"article","og_title":"How the Cache Works in Related Posts and Thumbnails","og_description":"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.","og_url":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/","og_site_name":"WPBrigade","article_publisher":"https:\/\/facebook.com\/WPBrigade","article_modified_time":"2026-10-07T10:36:14+00:00","og_image":[{"width":271,"height":63,"url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@wpbrigade","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/","url":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/","name":"How the Cache Works in Related Posts and Thumbnails - WPBrigade","isPartOf":{"@id":"https:\/\/wpbrigade.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/#primaryimage"},"image":{"@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/06\/ideas-icon-wpbrigade.svg","datePublished":"2026-10-07T10:36:13+00:00","dateModified":"2026-10-07T10:36:14+00:00","description":"Learn how the Related Posts Thumbnails cache works, when it refreshes, how to purge it, and how cache settings affect related posts.","breadcrumb":{"@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/#primaryimage","url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/06\/ideas-icon-wpbrigade.svg","contentUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/06\/ideas-icon-wpbrigade.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/wpbrigade.com\/docs\/related-posts-thumbnails-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpbrigade.com\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wpbrigade.com\/docs\/"},{"@type":"ListItem","position":3,"name":"How the Cache Works in Related Posts and Thumbnails"}]},{"@type":"WebSite","@id":"https:\/\/wpbrigade.com\/#website","url":"https:\/\/wpbrigade.com\/","name":"WPBrigade","description":"WordPress Development Agency","publisher":{"@id":"https:\/\/wpbrigade.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpbrigade.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wpbrigade.com\/#organization","name":"WPBrigade","url":"https:\/\/wpbrigade.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpbrigade.com\/#\/schema\/logo\/image\/","url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png","contentUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png","width":271,"height":63,"caption":"WPBrigade"},"image":{"@id":"https:\/\/wpbrigade.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/WPBrigade","https:\/\/x.com\/wpbrigade","https:\/\/www.instagram.com\/wpbrigade.agency\/","https:\/\/www.linkedin.com\/company\/wpbrigade","https:\/\/www.youtube.com\/c\/Wpbrigade"]}]}},"_links":{"self":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs\/323381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/users\/9268"}],"replies":[{"embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/comments?post=323381"}],"version-history":[{"count":0,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs\/323381\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/media?parent=323381"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/doc_category?post=323381"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/doc_tag?post=323381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}