Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/07/2015 01:18:51 AM (9 years ago)
Author:
r-a-y
Message:

Messages: Bust recipient cache when a message thread is marked as read or unread.

See r9482, which introduces message recipient caching.

Fixes #6220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp_messages-thread.php

    r9486 r9714  
    509509        $wpdb->query($sql);
    510510
     511        wp_cache_delete( 'thread_recipients_' . $thread_id, 'bp_messages' );
    511512        wp_cache_delete( bp_loggedin_user_id(), 'bp_messages_unread_count' );
    512513    }
     
    526527        $wpdb->query($sql);
    527528
     529        wp_cache_delete( 'thread_recipients_' . $thread_id, 'bp_messages' );
    528530        wp_cache_delete( bp_loggedin_user_id(), 'bp_messages_unread_count' );
    529531    }
Note: See TracChangeset for help on using the changeset viewer.