[buddypress-trac] [BuddyPress Trac] #7477: BP_Groups_Group::group_exists() should be cached.
buddypress-trac
noreply at wordpress.org
Wed Apr 5 00:20:02 UTC 2017
#7477: BP_Groups_Group::group_exists() should be cached.
-------------------------+----------------------
Reporter: dcavins | Owner: dcavins
Type: enhancement | Status: closed
Priority: normal | Milestone: 2.9
Component: Groups | Version: 2.8.2
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+----------------------
Changes (by dcavins):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"11525"]:
{{{
#!CommitTicketReference repository="" revision="11525"
Use BP_Groups_Group::get() in BP_Groups_Group::group_exists()
Retire the one-off, direct database query in
`BP_Groups_Group::group_exists()` in favor of using
`BP_Groups_Group::get()’ internally. Also, the new form takes advantage
of the built-in incremented caching in `BP_Groups_Group::get()’.
Fixes #7477.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7477#comment:13>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list