Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/16/2014 11:51:32 PM (11 years ago)
Author:
boonebgorges
Message:

Don't prime activitymeta cache in BP_Activity_Activity::construct()

bp_activity_get_meta() now uses the core API functions. get_metadata() works by
priming the cache with *all* object metadata when requesting any piece of
metadata for that object. This means that, instead of pre-fetching activitymeta
when instantiating BP_Activity_Activity, we wait until it happens in
get_metadata(). At best, this can help us to avoid pre-fetching a meta cache
that will not be used.

See #5398

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r7860 r7901  
    159159            $this->mptt_right        = $row->mptt_right;
    160160            $this->is_spam           = $row->is_spam;
    161 
    162             bp_activity_update_meta_cache( $this->id );
    163161        }
    164162    }
Note: See TracChangeset for help on using the changeset viewer.