bp_document_set_nocache_constants( mixed $return = true )

Set constants to prevent caching by some plugins.

Description

Parameters

$return

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

Default value: true

Return

(mixed)

Source

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

function bp_document_set_nocache_constants( $return = true ) {
	bp_document_maybe_define_constant( 'DONOTCACHEPAGE', true );
	bp_document_maybe_define_constant( 'DONOTCACHEOBJECT', true );
	bp_document_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.