Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2015 08:38:37 PM (12 years ago)
Author:
johnjamesjacoby
Message:

XProfile data cache group updates:

  • Switches from dynamic cache group to unique key for $user_id:$field_id.
  • Introduces bp_xprofile_get_non_cached_field_ids() as a helper, based on bp_get_non_cached_field_ids().
  • Registers bp_xprofile and bp_xprofile_data as global cache groups.
  • Updates unit tests to pass with new cache keys.

Props r-a-y. Fixes #6100. See #5733.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-loader.php

    r9289 r9336  
    354354
    355355        /**
     356         * Setup cache groups
     357         *
     358         * @since BuddyPress (2.2.0)
     359         */
     360        public function setup_cache_groups() {
     361
     362                // Global groups
     363                wp_cache_add_global_groups( array(
     364                        'bp_xprofile',
     365                        'bp_xprofile_data',
     366                        //'xprofile_meta'
     367                ) );
     368
     369                parent::setup_cache_groups();
     370        }
     371
     372        /**
    356373         * Adds "Settings > Profile" subnav item under the "Settings" adminbar menu.
    357374         *
Note: See TracChangeset for help on using the changeset viewer.