cache – RSS: fetch_feed caching with different caching delay per feed?

Question

I have seen that the filter wp_feed_cache_transient_lifetime can be used to set the cache period for fetch_feed. But this seems to set it globally for all feeds. Is there a way to have a different cache period per feed?

This is useful in my case where I have multiple feeds for quite different purposes. some feeds are clearly being refreshed very quickly, while I don’t expect others to be updated more than once per month.

The issue with these RSS feeds is if they are not cached properly they slow down the page noticeably.

0
shelbypereira 6 months 2022-06-19T01:13:35-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse