[buddypress-trac] [BuddyPress Trac] #6045: $bp->site_options should not be referenced directly
buddypress-trac
noreply at wordpress.org
Wed Dec 10 20:18:31 UTC 2014
#6045: $bp->site_options should not be referenced directly
--------------------------+------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.2
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by johnjamesjacoby):
Note that only the first call to `get_site_option()` for each option
results on a DB hit, similarly to what BuddyPress does now, then caches
that option on its own via `{$wpdb->siteid}:$option` so subsequent calls
won't hit the DB (even without a persistent object cache.)
I have a hunch the impact would be next to nil.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6045#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list