Changeset 1290
- Timestamp:
- 03/31/2009 02:14:38 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r1270 r1290 898 898 wp_cache_delete( 'bp_blogs_of_user_' . $user_id, 'bp' ); 899 899 wp_cache_delete( 'bp_blogs_for_user_' . $user_id, 'bp' ); 900 901 /* Clear the sitewide activity cache */ 902 wp_cache_delete( 'sitewide_activity', 'bp' ); 900 903 } 901 904 902 905 function bp_blogs_format_clear_blog_cache( $recorded_blog_obj ) { 903 906 bp_blogs_clear_blog_object_cache( false, $recorded_blog_obj->user_id ); 907 908 /* Clear the sitewide activity cache */ 909 wp_cache_delete( 'sitewide_activity', 'bp' ); 904 910 } 905 911 … … 910 916 function bp_blogs_format_clear_post_cache( $recorded_post_obj ) { 911 917 bp_blogs_clear_post_object_cache( false, false, $recorded_post_obj->user_id ); 918 919 /* Clear the sitewide activity cache */ 920 wp_cache_delete( 'sitewide_activity', 'bp' ); 912 921 } 913 922 … … 918 927 function bp_blogs_format_clear_comment_cache( $recorded_comment_obj ) { 919 928 bp_blogs_clear_comment_object_cache( false, false, $recorded_comment_obj->user_id ); 929 930 /* Clear the sitewide activity cache */ 931 wp_cache_delete( 'sitewide_activity', 'bp' ); 920 932 } 921 933 -
trunk/bp-friends.php
r1282 r1290 642 642 wp_cache_delete( 'friends_friend_ids_' . $friendship->friend_user_id, 'bp' ); 643 643 wp_cache_delete( 'popular_users', 'bp' ); 644 645 /* Clear the sitewide activity cache */ 646 wp_cache_delete( 'sitewide_activity', 'bp' ); 644 647 } 645 648 -
trunk/bp-groups.php
r1273 r1290 969 969 if ( function_exists('bp_activity_record') ) { 970 970 extract($args); 971 971 972 if ( !$group_obj ) { 973 if ( !$group_obj = wp_cache_get( 'groups_group_nouserdata_' . $item_id, 'bp' ) ) { 974 $group_obj = new BP_Groups_Group( $group_obj->id, false, false ); 975 wp_cache_set( 'groups_group_nouserdata_' . $item_id, $group_obj, 'bp' ); 976 } 977 } 978 972 979 if ( 'public' == $group_obj->status ) 973 980 bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id ); -
trunk/bp-groups/bp-groups-classes.php
r1280 r1290 58 58 $this->date_created = strtotime($group->date_created); 59 59 $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' ); 60 60 61 61 if ( !$group->avatar_thumb || strpos( $group->avatar_thumb, 'none-thumbnail' ) ) 62 62 $this->avatar_thumb = 'http://www.gravatar.com/avatar/' . md5( $this->id . '@' . $bp->root_domain ) . '?d=identicon&s=50'; -
trunk/bp-groups/bp-groups-templatetags.php
r1273 r1290 1010 1010 1011 1011 if ( $echo ) 1012 echo apply_filters( 'groups_template', $group->total_ group_count );1012 echo apply_filters( 'groups_template', $group->total_member_count ); 1013 1013 else 1014 return apply_filters( 'groups_template', $group->total_ group_count );1014 return apply_filters( 'groups_template', $group->total_member_count ); 1015 1015 } 1016 1016 -
trunk/bp-xprofile.php
r1270 r1290 958 958 wp_cache_delete( 'xprofile_groups_inc_empty', 'bp' ); 959 959 wp_cache_delete( 'xprofile_group_' . $group_obj->id ); 960 961 /* Clear the sitewide activity cache */ 962 wp_cache_delete( 'sitewide_activity', 'bp' ); 960 963 } 961 964 … … 967 970 wp_cache_delete( 'newest_users', 'bp' ); 968 971 wp_cache_delete( 'popular_users', 'bp' ); 972 973 /* Clear the sitewide activity cache */ 974 wp_cache_delete( 'sitewide_activity', 'bp' ); 969 975 } 970 976
Note: See TracChangeset
for help on using the changeset viewer.