Changeset 1238 for trunk/bp-groups.php
- Timestamp:
- 03/19/2009 01:35:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r1227 r1238 706 706 } 707 707 708 do_action( 'groups_group_avatar_ edited', $group_obj->id );708 do_action( 'groups_group_avatar_updated', $group_obj->id ); 709 709 710 710 bp_core_redirect( site_url() . '/' . $bp->current_component . '/' . $bp->current_item . '/admin/group-avatar' ); … … 2313 2313 2314 2314 2315 function groups_clear_group_object_cache( $group_id ) { 2316 wp_cache_delete( 'groups_group_nouserdata_' . $group_id, 'bp' ); 2317 wp_cache_delete( 'groups_group_' . $group_id, 'bp' ); 2318 wp_cache_delete( 'newest_groups', 'bp' ); 2319 wp_cache_delete( 'active_groups', 'bp' ); 2320 wp_cache_delete( 'popular_groups', 'bp' ); 2321 wp_cache_delete( 'groups_random_groups', 'bp' ); 2322 } 2323 2324 // List actions to clear object caches on 2325 add_action( 'groups_group_deleted', 'groups_clear_group_object_cache' ); 2326 add_action( 'groups_settings_updated', 'groups_clear_group_object_cache' ); 2327 add_action( 'groups_details_updated', 'groups_clear_group_object_cache' ); 2328 add_action( 'groups_group_avatar_updated', 'groups_clear_group_object_cache' ); 2329 2315 2330 // List actions to clear super cached pages on, if super cache is installed 2316 2331 add_action( 'groups_new_wire_post', 'bp_core_clear_cache' );
Note: See TracChangeset
for help on using the changeset viewer.