id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 15543,_get_last_post_time() uses the incorrect cache key,mdawaffe,scribu,"[15838] sets the cache key to {{{""lastpost{$field}:"" . get_current_blog_id() . "":$timezone:"" . md5( serialize( $post_types ) )}}} but that key is never invalidated. The invalidation is meant to be handled by {{{_transition_post_status()}}}. There's no need to explicitly include the blog_id in a cache key. If the data needs to be cached by some dynamic variable ($post_types, in this case), there are a few options. 1. The invalidation needs to be a lot smarter (hard). 2. The cached data needs to be an array ({{{$data[ serialize( ... ) ] = $date}}}) so that it can be invalidated all at once (bad - leads to race conditions). 3. The data should only be cached for one single page load ({{{wp_cache_add_non_persistent_groups()}}}). 4. Something else?",defect (bug),closed,high,3.1,Cache API,,major,fixed,,,