[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-blogs/ -> bp-blogs-cache.php (summary)

BuddyPress Blogs Caching. Caching functions handle the clearing of cached objects and pages on specific actions throughout BuddyPress.

File Size: 68 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  bp_blogs_update_meta_cache()
  bp_blogs_clear_blog_object_cache()

Functions
Functions that are not part of a class:

bp_blogs_update_meta_cache( $blog_ids = false )   X-Ref
Slurp up blogmeta for a specified set of blogs.

It grabs all blogmeta associated with all of the blogs passed
in $blog_ids and adds it to the WP cache. This improves efficiency when
using querying blogmeta inline.

param: int|string|array|bool $blog_ids Accepts a single blog ID, or a comma-

bp_blogs_clear_blog_object_cache( $blog_id = 0, $user_id = 0 )   X-Ref
Clear the blog object cache.

param: int $blog_id ID of the current blog.
param: int $user_id ID of the user whose blog cache should be cleared.
since: 1.0.0



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1