Changeset 5505 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 12/11/2011 04:58:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r5437 r5505 483 483 484 484 // Delete cache entry 485 wp_cache_delete( 'bp_activity_meta_' . $ meta_key . '_' . $activity_id, 'bp' );485 wp_cache_delete( 'bp_activity_meta_' . $activity_id . '_' . $meta_key, 'bp' ); 486 486 487 487 // Success … … 524 524 525 525 // Check cache 526 if ( !$metas = wp_cache_get( 'bp_activity_meta_' . $meta_key . '_' . $activity_id, 'bp' ) ) { 526 if ( !$metas = wp_cache_get( 'bp_activity_meta_' . $activity_id . '_' . $meta_key, 'bp' ) ) { 527 var_dump( 'miss' ); 527 528 528 529 // No cache so hit the DB … … 530 531 531 532 // Set cache 532 wp_cache_set( 'bp_activity_meta_' . $ meta_key . '_' . $activity_id, $metas, 'bp' );533 wp_cache_set( 'bp_activity_meta_' . $activity_id . '_' . $meta_key, $metas, 'bp' ); 533 534 } 534 535 … … 606 607 607 608 // Set cache 608 wp_cache_set( 'bp_activity_meta_' . $ meta_key . '_' . $activity_id, $meta_value, 'bp' );609 wp_cache_set( 'bp_activity_meta_' . $activity_id . '_' . $meta_key, $meta_value, 'bp' ); 609 610 610 611 // Victory is ours!
Note: See TracChangeset
for help on using the changeset viewer.