[wp-trac] [WordPress Trac] #30085: get_lastpostmodified() is not affected by post meta

WordPress Trac noreply at wordpress.org
Thu Oct 23 17:35:58 UTC 2014


#30085: get_lastpostmodified() is not affected by post meta
-------------------------------+-----------------------------
 Reporter:  wonderboymusic     |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:                     |
-------------------------------+-----------------------------
 I noticed this when studying the WP-API: the meta for a post could be
 updated, but the `Last-Modified` HTTP header for the feed won't change.

 Should updating meta affect `post_modified(_gmt)`? If so, should it only
 be for public meta?

 This is not a caching issue, because Invalidating the cache won't matter
 unless this change is made, because `get_lastpostmodified()` only looks at
 the post fields, which currently won't change.

 This issue is especially prescient for custom post types that may be
 storing most of their data attributes in meta.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30085>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list