[buddypress-trac] [BuddyPress Trac] #5609: Blog data stored in activitymeta and blogmeta must be invalidated

buddypress-trac noreply at wordpress.org
Thu Aug 14 19:02:49 UTC 2014


#5609: Blog data stored in activitymeta and blogmeta must be invalidated
------------------------------+------------------
 Reporter:  boonebgorges      |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  2.1
Component:  Activity          |     Version:  2.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by DJPaul):

 > $comments = get_comments( array( 'post_id' => $post->ID ) );

 It looks like you're only using the `comment_ID` from this data. I'd
 suggest that you also set `fields=ids` in this `get_comments` call for a
 better query.

 Other than that, the patch looks OK (I'm still not fond of requesting
 things like the 99999 items from functions like this -- it's going to use
 up all the memory on a large site -- but I haven't a better suggestion at
 the moment.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5609#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list