Automattic\WooCommerce\Blocks\Patterns

PTKPatternsStore::flush_cached_patterns │ public │ WC 10.4.1

Reset the cached patterns to fetch them again from the PTK.

Method of the class: PTKPatternsStore{}

No Hooks.

Returns

void. Nothing (null).

Usage

$PTKPatternsStore = new PTKPatternsStore();
$PTKPatternsStore->flush_cached_patterns();

Changelog

Since 10.4.1 Introduced.
Since 10.4.1 Unscheduling is deferred if Action Scheduler hasn't initialized yet.

PTKPatternsStore::flush_cached_patterns() code WC 11.3.0

public function flush_cached_patterns() {
	delete_option( self::OPTION_NAME );

	$this->cancel_fetch_patterns_when_ready();
}