Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BBP_User_Engagements_User::cache_set( string $meta_key = '', int $object_id,  $user_ids = array() )

Set the user engagement cache for a given meta key and object ID.


Description Description

This method exists to provide backwards compatibility with bbPress 2.5, which had caching surrounding the FIND_IN_SET queries in usermeta.


Parameters Parameters

$meta_key

(Optional)

Default value: ''

$object_id

(Required)


Top ↑

Return Return

(mixed) Results from cache set


Top ↑

Source Source

File: includes/common/engagements.php

	private function cache_set( $meta_key = '', $object_id = 0, $user_ids = array() ) {
		$cache_key = $this->get_cache_key( $meta_key, $object_id );
		$user_ids  = $this->parse_comma_list( $user_ids );

		return wp_cache_set( $cache_key, $user_ids, 'bbpress_engagements' );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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