bp_media_set_nocache_constants( mixed $return = true )

Set constants to prevent caching by some plugins.

Description

Parameters

$return

(Optional) Value to return. Previously hooked into a filter.

Default value: true

Return

(mixed)

Source

File: bp-media/bp-media-filters.php

function bp_media_set_nocache_constants( $return = true ) {
	bp_media_maybe_define_constant( 'DONOTCACHEPAGE', true );
	bp_media_maybe_define_constant( 'DONOTCACHEOBJECT', true );
	bp_media_maybe_define_constant( 'DONOTCACHEDB', true );
	return $return;
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.1 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.