Title: Feed Cache
Last modified: June 12, 2026

---

# Feed Cache

 *  Resolved [jornalosaopaulo](https://wordpress.org/support/users/jornalosaopaulo/)
 * (@jornalosaopaulo)
 * [4 days, 7 hours ago](https://wordpress.org/support/topic/feed-cache/)
 * Hello there,
 * I’ve been reviewing the cache invalidation logic in `Cache_Invalidation_Hooks.
   php` (`get_post_related_links()`), 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.
 * For comparison, the code does explicitly purge:
    - `get_author_feed_link()` for the post author
    - `get_post_type_archive_feed_link()` for the post type archive
 * But there’s no equivalent added for taxonomy term feeds.
 * **My use case:** 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’d like
   to cache this feed, but only if it gets purged automatically when a relevant 
   post is published/updated – otherwise it would serve stale content indefinitely(
   since the cache never expires by TTL in our config).
 * **Questions:**
    1. Is this an intentional omission, or an oversight?
    2. Is there a recommended way to extend the purge list to include taxonomy term
       feed URLs?
    3. Would this be considered for inclusion in the default purge list in a future
       release?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Support [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [10 hours, 45 minutes ago](https://wordpress.org/support/topic/feed-cache/#post-18939443)
 * Hi [@jornalosaopaulo](https://wordpress.org/support/users/jornalosaopaulo/),
 * Thanks for the detailed report. The plugin already purges the feed URLs for author
   archives and post type archives whenever a post changes, but it’s missing the
   same step for taxonomy term archives (tags, categories, custom taxonomies). That’s
   an oversight rather than a deliberate decision, and it’s something we’d treat
   as a bug fix.
 * In the meantime, you can work around it using the `swcfpc_post_related_url_init`
   filter, which lets you inject additional URLs into the purge list whenever a 
   post is published, updated, or deleted. Add something like this to your theme’s`
   functions.php` or a small mu-plugin:
 *     ```wp-block-code
       add_filter( 'swcfpc_post_related_url_init', function( $urls, $post_id ) {
           foreach ( get_object_taxonomies( get_post_type( $post_id ) ) as $taxonomy ) {
               $terms = get_the_terms( $post_id, $taxonomy );
               if ( empty( $terms ) || is_wp_error( $terms ) ) continue;
               foreach ( $terms as $term ) {
                   $feed = get_term_feed_link( $term->term_id, $term->taxonomy );
                   if ( $feed && ! is_wp_error( $feed ) ) $urls[] = $feed;
               }
           }
           return $urls;
       }, 10, 2 );
       ```
   
 * This will automatically purge the feed URL for every taxonomy term associated
   with the post — tags, categories, and any custom taxonomies on every publish,
   update, or delete.
 * We can’t promise a specific timeline for when the fix will be included in the
   plugin, but we have forwarded the issue to our team.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeed-cache%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * Last activity: [10 hours, 45 minutes ago](https://wordpress.org/support/topic/feed-cache/#post-18939443)
 * Status: resolved