{"id":18936374,"date":"2026-06-12T10:22:36","date_gmt":"2026-06-12T10:22:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feed-cache\/"},"modified":"2026-06-12T10:22:36","modified_gmt":"2026-06-12T10:22:36","slug":"feed-cache","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feed-cache\/","title":{"rendered":"Feed Cache"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello there,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve been reviewing the cache invalidation logic in <code>Cache_Invalidation_Hooks.php<\/code> (<code>get_post_related_links()<\/code>), and noticed that when a post is published, updated, or deleted, the plugin purges the taxonomy term link, but does not also purge the corresponding feed URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For comparison, the code does explicitly purge:<\/p>\n\n\n\n<ul>\n<li><code>get_author_feed_link()<\/code> for the post author<\/li>\n\n\n\n<li><code>get_post_type_archive_feed_link()<\/code> for the post type archive<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">But there&#8217;s no equivalent added for taxonomy term feeds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>My use case:<\/strong> I have a setup where one site fetches a tag feed from another site every minute via RSS. This feed is currently excluded from caching entirely, which causes frequent DB queries and occasional timeouts under load. I&#8217;d like to cache this feed, but only if it gets purged automatically when a relevant post is published\/updated &#8211; otherwise it would serve stale content indefinitely (since the cache never expires by TTL in our config).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Questions:<\/strong><\/p>\n\n\n\n<ol>\n<li>Is this an intentional omission, or an oversight?<\/li>\n\n\n\n<li>Is there a recommended way to extend the purge list to include taxonomy term feed URLs?<\/li>\n\n\n\n<li>Would this be considered for inclusion in the default purge list in a future release?<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-18936374","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18936374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18936374\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18936374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}