[buddypress-trac] [BuddyPress Trac] #5362: Utilize caching during BP init process

buddypress-trac noreply at wordpress.org
Thu Feb 6 19:38:36 UTC 2014


#5362: Utilize caching during BP init process
-------------------------------+--------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  2.0
Component:  Core               |     Version:  1.9.1
 Severity:  normal             |  Resolution:
 Keywords:                     |
-------------------------------+--------------------

Comment (by boonebgorges):

 In [changeset:"7812"]:
 {{{
 #!CommitTicketReference repository="" revision="7812"
 Introduce bp_xprofile_fullname_field_id() and use in query building
 throughout BP

 There are many places throughout BuddyPress where it's necessary to query
 for
 user fullnames. When XProfile is active, part of this process involves
 determining the ID of the fullname field. Historically, this has been done
 by
 querying for the ID of a field corresponding to the 'name'
 bp_xprofile_fullname_field_name().
 Creating a standalone function for this allows us to centralize persistent
 caching for the field ID.

 As a side note, the fact that we do this query at all is a little
 farcical.
 The fullname field is essentially necessarily tied to field #1 (due to
 some
 hardcoding in the xprofile schema definition as well as bp-xprofile-
 admin.php).
 We rely on the Name setting only for historical reasons, which probably
 didn't
 even make all that much sense at the time. At some point, a serious review
 should be done, and references to the fullname field id standardized
 (either
 all hardcoded, or all not hardcoded).

 See #5362
 }}}

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


More information about the buddypress-trac mailing list