Changeset 10039 for trunk/src/bp-core/bp-core-cache.php
- Timestamp:
- 08/09/2015 05:07:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cache.php
r10012 r10039 2 2 /** 3 3 * BuddyPress Core Caching Functions. 4 * 5 * @package BuddyPress 4 6 * 5 7 * Caching functions handle the clearing of cached objects and pages on specific … … 38 40 * Clear all cached objects for a user, or those that a user is part of. 39 41 * 40 * @param string $user_id 42 * @param string $user_id User ID to delete cache for. 41 43 */ 42 44 function bp_core_clear_user_object_cache( $user_id ) { … … 62 64 * @since BuddyPress (2.0.0) 63 65 * 64 * @param int $post_id 66 * @param int $post_id ID of the page that was saved. 65 67 */ 66 68 function bp_core_clear_directory_pages_cache_page_edit( $post_id ) { … … 69 71 } 70 72 71 // Bail if BP is not defined here 73 // Bail if BP is not defined here. 72 74 if ( ! buddypress() ) { 73 75 return; … … 185 187 'meta_table' => '', // Name of the table containing the metadata 186 188 'object_column' => '', // DB column for the object ids (group_id, etc) 187 'cache_key_prefix' => '' // Prefix to use when creating cache key names. Eg 188 // 'bp_groups_groupmeta' 189 'cache_key_prefix' => '' // Prefix to use when creating cache key names. Eg 'bp_groups_groupmeta' 189 190 ); 190 191 $r = wp_parse_args( $args, $defaults );
Note: See TracChangeset
for help on using the changeset viewer.