Skip to:
Content

BuddyPress.org

Changeset 8595


Ignore:
Timestamp:
07/11/2014 08:22:23 PM (10 years ago)
Author:
boonebgorges
Message:

Delete blogmeta cache after truncating blogmeta table in bp_blogs_record_existing_blog()

This ensures that no stale data is left in the persistent cache after being
removed manually from the database.

See #5749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-functions.php

    r8593 r8595  
    123123    // Loop through users of blogs and record the relationship
    124124    foreach ( (array) $blog_ids as $blog_id ) {
    125        
     125
     126        // Ensure that the cache is clear after the table TRUNCATE above
     127        wp_cache_delete( $blog_id, 'blog_meta' );
     128
    126129        // Get all users
    127130        $all_users = get_users( array(
Note: See TracChangeset for help on using the changeset viewer.