[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 21:28:20 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 MikeNGarrett):

 I see what you're saying.

 As for desired behavior, feeds are one of the few places we can reliably
 depend on a particular format for the content of that view. For that
 reason, the lastBuildDate should reflect the most recently published
 content according to the parameters of the content being displayed in the
 feed rather than site-wide.

 To achieve this, I would be in favor of allowing `get_lastpostmodified` to
 accept a parameter that can be passed to `_get_last_post_time` to modify
 the WHERE part of the sql statement.

 I think hashing the result of the query and saving that would be a messy
 solution since we're already using wpdb to make a query in
 `_get_last_post_time` to find the correct value.

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


More information about the wp-trac mailing list