Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2015 12:49:36 AM (9 years ago)
Author:
tw2113
Message:

First pass at BP-Core docs cleanup.

See #6398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cache.php

    r9819 r10012  
    1717 * When wp-super-cache is installed this function will clear cached pages
    1818 * so that success/error messages are not cached, or time sensitive content.
     19 *
     20 * @return int
    1921 */
    2022function bp_core_clear_cache() {
     
    3537/**
    3638 * Clear all cached objects for a user, or those that a user is part of.
     39 *
     40 * @param string $user_id
    3741 */
    3842function bp_core_clear_user_object_cache( $user_id ) {
     
    126130 * @since BuddyPress (2.0.0)
    127131 *
    128  * @param array $item_ids ID list.
     132 * @param array  $item_ids    ID list.
    129133 * @param string $cache_group The cache group to check against.
     134 *
    130135 * @return array
    131136 */
     
    154159 * @since BuddyPress (1.6.0)
    155160 *
    156  * @global $wpdb WordPress database object for queries..
     161 * @global object $wpdb WordPress database object for queries..
    157162 *
    158163 * @param array $args {
    159164 *     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_type The type of object, eg 'groups' or 'activity'.
    163  *     @type string $meta_table The name of the metadata table being queried.
    164  *     @type string $object_column Optional. The name of the database column
    165  *           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 creating
    168  *           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.
    169174 * }
     175 *
    170176 * @return array|bool Metadata cache for the specified objects, or false on failure.
    171177 */
     
    180186        'object_column'    => '',      // DB column for the object ids (group_id, etc)
    181187        'cache_key_prefix' => ''       // Prefix to use when creating cache key names. Eg
    182                            //    'bp_groups_groupmeta'
     188                                       // 'bp_groups_groupmeta'
    183189    );
    184190    $r = wp_parse_args( $args, $defaults );
Note: See TracChangeset for help on using the changeset viewer.