bp_core_clear_directory_pages_cache_settings_edit( string $option )

Clear the directory_pages cache when the bp-pages option is updated.

Description

Parameters

$option

(Required) Option name.

Source

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

function bp_core_clear_directory_pages_cache_settings_edit( $option ) {
	if ( 'bp-pages' === $option ) {
		wp_cache_delete( 'directory_pages', 'bp_pages' );
	}
}

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.