Changeset 8320 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 04/24/2014 09:59:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r8290 r8320 1333 1333 1334 1334 // get cache for single user only 1335 // @todo Why only single user? 1335 1336 if ( ! is_array( $user_id ) ) { 1336 1337 $cache = wp_cache_get( $user_id, 'bp_last_activity' ); … … 1356 1357 'activity_id' => $last_activity->id, 1357 1358 ); 1359 } 1360 1361 // If this was a single user query, update the cache 1362 if ( ! is_array( $user_id ) && isset( $retval[ $user_id ] ) ) { 1363 wp_cache_set( $user_id, $retval[ $user_id ], 'bp_last_activity' ); 1358 1364 } 1359 1365
Note: See TracChangeset
for help on using the changeset viewer.