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_get( string $meta_key = '', int $object_id )

Get 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 get


Top ↑

Source Source

File: includes/common/engagements.php

	private function cache_get( $meta_key = '', $object_id = 0 ) {
		$cache_key = $this->get_cache_key( $meta_key, $object_id );

		return wp_cache_get( $cache_key, '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.