Caching Podcast RSS Feed? | WordPress.org

[ad_1]

Plugin Contributor
iSaumya

(@isaumya)

Hi,
you can create a cache rule to ask Cloudflare to always cache the feed URL but then you might need to create the cache for the feed URL manually when it gets updated.

Thanks, @isaumya! Is there a hook that I could tie into that would effectively add /feed/podcast to “the list” of things that gets purged/cleared from the cache when something else on the site gets updated?

Like the hook that clears the home page from the cache when I update a post? That’s the same trigger I’d want to use to clear the cache for the feed (and, now that I think about it, that’s probably the hook most sites would want to have feeds cleared from the cache).

Plugin Contributor
iSaumya

(@isaumya)

Yah sure. Check the advanced section inside the FAQ tab and use swcfpc_post_related_url_init filter which is already mentioned there.

Ahh ok, thank you again @isaumya! I’ll look into what it might take to create a custom plugin to link into that hook.

And in parallel I would like to log a feature request: It would be great to have a field in the Advanced Settings where I could just manually add URLs to this list right inside of SPCFC’s own settings, so users don’t have to create their own helper plugin to do it. 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer