Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/19/2009 01:35:32 PM (17 years ago)
Author:
apeatling
Message:

Added basic object caching support ready for the first release. This will cut the number of database calls and load by 3x. Add define( 'WP_CACHE', true ); to you wp-config.php and drop object-cache.php into /wp-content/ to enable.

A good file based object cache is available here:
http://neosmart.net/dl.php?id=14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r1141 r1238  
    154154                $message = __('The group was saved successfully.', 'buddypress');
    155155                $type = 'success';
     156               
     157                do_action( 'xprofile_groups_saved_group', $group );
    156158            }
    157159           
     
    184186        $message = __('The group was deleted successfully.', 'buddypress');
    185187        $type = 'success';
     188       
     189        do_action( 'xprofile_groups_deleted_group', $group );
    186190    }
    187191   
     
    224228                unset($_GET['mode']);
    225229               
    226                 $groups = $groups = BP_XProfile_Group::get_all();
     230                do_action( 'xprofile_fields_saved_field', $field );
     231               
     232                $groups = BP_XProfile_Group::get_all();
    227233                xprofile_admin( $message, $type );
    228234            }
     
    258264        $message = sprintf( __('The %s was deleted successfully!', 'buddypress'), $type);
    259265        $type = 'success';
     266       
     267        do_action( 'xprofile_fields_deleted_field', $field );
    260268    }
    261269   
Note: See TracChangeset for help on using the changeset viewer.