Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 02:14:07 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in XProfile component. See #3989.

File:
1 edited

Legend:

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

    r5302 r5699  
    11<?php
    2 /********************************************************************************
    3  * Caching
     2
     3/**
     4 * BuddyPress XProfile Template Tags
    45 *
    56 * Caching functions handle the clearing of cached objects and pages on specific
    67 * actions throughout BuddyPress.
     8 *
     9 * @package BuddyPress
     10 * @subpackage XProfileTemplate
    711 */
    812
     
    1115
    1216function xprofile_clear_profile_groups_object_cache( $group_obj ) {
    13     wp_cache_delete( 'xprofile_groups_inc_empty', 'bp' );
    14     wp_cache_delete( 'xprofile_group_' . $group_obj->id );
     17    wp_cache_delete( 'xprofile_groups_inc_empty',        'bp' );
     18    wp_cache_delete( 'xprofile_group_' . $group_obj->id, 'bp' );
    1519}
    1620
    1721function xprofile_clear_profile_data_object_cache( $group_id ) {
    18     global $bp;
    1922    wp_cache_delete( 'bp_user_fullname_' . bp_loggedin_user_id(), 'bp' );
    2023}
Note: See TracChangeset for help on using the changeset viewer.