bp_notifications_clear_all_for_user_cache( int $user_id )

Clear all notifications cache for a given user ID.

Parameters Parameters


(int) (Required) The user ID's cache to clear.

Source Source

File: bp-notifications/bp-notifications-cache.php

function bp_notifications_clear_all_for_user_cache( $user_id = 0 ) {
	wp_cache_delete( 'all_for_user_' . $user_id, 'bp_notifications' );
	wp_cache_delete( $user_id, 'bp_notifications_unread_count' );
	wp_cache_delete( $user_id, 'bp_notifications_grouped_notifications' );

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.