bp_notifications_clear_all_for_user_cache_after_save( BP_Notifications_Notification $n )

Invalidate ‘all_for_user_’ cache when saving.

Description

Parameters

$n

(BP_Notifications_Notification) (Required) Notification object.

Source

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

function bp_notifications_clear_all_for_user_cache_after_save( BP_Notifications_Notification $n ) {
	bp_notifications_clear_all_for_user_cache( $n->user_id );
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.