Changeset 10012 for trunk/src/bp-core/bp-core-cache.php
- Timestamp:
- 07/12/2015 12:49:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cache.php
r9819 r10012 17 17 * When wp-super-cache is installed this function will clear cached pages 18 18 * so that success/error messages are not cached, or time sensitive content. 19 * 20 * @return int 19 21 */ 20 22 function bp_core_clear_cache() { … … 35 37 /** 36 38 * Clear all cached objects for a user, or those that a user is part of. 39 * 40 * @param string $user_id 37 41 */ 38 42 function bp_core_clear_user_object_cache( $user_id ) { … … 126 130 * @since BuddyPress (2.0.0) 127 131 * 128 * @param array $item_idsID list.132 * @param array $item_ids ID list. 129 133 * @param string $cache_group The cache group to check against. 134 * 130 135 * @return array 131 136 */ … … 154 159 * @since BuddyPress (1.6.0) 155 160 * 156 * @global $wpdb WordPress database object for queries..161 * @global object $wpdb WordPress database object for queries.. 157 162 * 158 163 * @param array $args { 159 164 * Array of arguments. 160 * @type array|string $object_ids List of object IDs to fetch metadata for.161 * Accepts an array or a comma-separated list of numeric IDs.162 * @type string $object_typeThe type of object, eg 'groups' or 'activity'.163 * @type string $meta_tableThe name of the metadata table being queried.164 * @type string $object_column Optional. The name of the database column165 * where IDs(those provided by $object_ids) are found. Eg, 'group_id'166 * for the groups metadata tables. Default: $object_type . '_id'.167 * @type string $cache_key_prefix Optional. The prefix to use when creating168 * cache key names. Default: the value of $meta_table.165 * @type array|string $object_ids List of object IDs to fetch metadata for. 166 * Accepts an array or a comma-separated list of numeric IDs. 167 * @type string $object_type The type of object, eg 'groups' or 'activity'. 168 * @type string $meta_table The name of the metadata table being queried. 169 * @type string $object_column Optional. The name of the database column where IDs 170 * (those provided by $object_ids) are found. Eg, 'group_id' 171 * for the groups metadata tables. Default: $object_type . '_id'. 172 * @type string $cache_key_prefix Optional. The prefix to use when creating 173 * cache key names. Default: the value of $meta_table. 169 174 * } 175 * 170 176 * @return array|bool Metadata cache for the specified objects, or false on failure. 171 177 */ … … 180 186 'object_column' => '', // DB column for the object ids (group_id, etc) 181 187 'cache_key_prefix' => '' // Prefix to use when creating cache key names. Eg 182 //'bp_groups_groupmeta'188 // 'bp_groups_groupmeta' 183 189 ); 184 190 $r = wp_parse_args( $args, $defaults );
Note: See TracChangeset
for help on using the changeset viewer.