Automattic\WooCommerce\Internal\ProductFilters

CacheController::need_cleanuppublicWC 1.0

Check if the filter data cache should be cleaned up. If the cache group is not set, it means that the store is not using the product filters and we don't need to register the hooks.

Method of the class: CacheController{}

No Hooks.

Returns

true|false.

Usage

$CacheController = new CacheController();
$CacheController->need_cleanup();

CacheController::need_cleanup() code WC 10.9.1

public function need_cleanup() {
	return ! empty( get_transient( self::CACHE_GROUP . '-transient-version' ) );
}