[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag

WordPress Trac noreply at wordpress.org
Tue Apr 14 20:12:59 UTC 2015

#4575: Add functions to return the last-modified timestamp of a category/tag
 Reporter:  delusions                   |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Feeds                       |     Version:  2.2.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  template

Comment (by stevenkword):

 I don't believe modifying `get_lastpostmodified()` is the appropriate
 solution.  In addition to the methods use outside of RSS feeds, plugin
 authors may be using this method to bust caches, etc.

 I think we first need to determine the desired behavior and perhaps create
 a new function specifically for feed syndication.  I am in agreement that
 using the same `lastBuildDate` site-wide for all feeds is not ideal.  In
 the current state, feeds will issue new timestamps to aggregators even
 when the content is otherwise unchanged.  For example.  If you add a new
 post to an 'Entertainment' category, the `lastBuildDate` for a 'News'
 category feed would also change, even though there were no changes to the
 'News' category feed's content.

 It would be more appropriate to only issue a change to the `lastBuildDate`
 value of individual feeds if the query itself has changed.  Adding
 something like a stored hash of the WP_Query object or perhaps an array of
 post modified timestamps to term/object meta would still allow aggregators
 to detect all changes to the feed, but only when content actually changes.

Ticket URL: <https://core.trac.wordpress.org/ticket/4575#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list