RSS lastBuildDate
-
RSS feeds have a node <lastBuildDate> that should specify when the feed was last updated with new content. However, the way WordPress handles plugin posts such as Events Calendar posts as Custom Post Types, that node does not get incremented to a new date when a new event is added. Thus, the RSS feed https://abc.tld/events/feed always has a lastBuildDate of whenever the last WordPress post was published or updated.
This becomes a problem when aggregating or caching RSS feeds. In my situation, at a university, I have a WordPress multisite and a static PHP website, and I use PHP scripts to display latest news and latest events on dozens of college and department home pages. Because WP RSS feeds take a long time to load, I have a cron job that fetches RSS feeds from WordPress, compares lastBuildDate, and updates XML files on the static web server if lastBuildDate is newer. This works fine for normal WP posts, but EC feeds do not work correctly.
I believe this is a bug, and should be addressed. <lastBuildDate> of an RSS feed should be incremented when new content items are added to the feed, or the content otherwise changes.
- The topic ‘RSS lastBuildDate’ is closed to new replies.