Prune the WP Super Cache.

Description Description

When WP Super Cache is installed, this function will clear cached pages so that success/error messages or time-sensitive content are not cached.

See also See also

Top ↑

Return Return


Top ↑

Source Source

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

function bp_core_clear_cache() {
	global $cache_path;

	if ( function_exists( 'prune_super_cache' ) ) {

		 * Fires before the pruning of WP Super Cache.
		 * @since 1.0.0
		do_action( 'bp_core_clear_cache' );
		return prune_super_cache( $cache_path, true );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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