Automattic\WooCommerce\Blocks\Patterns
PTKPatternsStore::flush_cached_patterns
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() 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();
}