bp_blogs_format_clear_blog_cache

Clear cache when a new blog is created.

Description

bp_blogs_format_clear_blog_cache( (BP_Blogs_Blog) $recorded_blog_obj ); 

Parameters (1)

0. $recorded_blog_obj (BP_Blogs_Blog)
The recorded blog, passed by bp_blogs_new_blog..

Usage

  1. if ( !function_exists( 'bp_blogs_format_clear_blog_cache' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.2.php'; 
  3.  
  4. // The recorded blog, passed by 
  5. // 'bp_blogs_new_blog'. 
  6. $recorded_blog_obj = null; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_blogs_format_clear_blog_cache($recorded_blog_obj); 
  10.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.2.php  
  1. function bp_blogs_format_clear_blog_cache( $recorded_blog_obj ) { 
  2. _deprecated_function( __FUNCTION__, '2.2', 'bp_blogs_clear_blog_object_cache()' ); 
  3. bp_blogs_clear_blog_object_cache( false, $recorded_blog_obj->user_id );