Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCTransactionalEmailPostsManager::clear_cachespublicWC 1.0

Clears all in-memory caches.

Useful for testing and debugging. Note that this only clears in-memory caches, not the WordPress object cache entries (which will expire naturally).

Method of the class: WCTransactionalEmailPostsManager{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WCTransactionalEmailPostsManager = new WCTransactionalEmailPostsManager();
$WCTransactionalEmailPostsManager->clear_caches();

WCTransactionalEmailPostsManager::clear_caches() code WC 10.8.1

public function clear_caches() {
	$this->post_id_to_email_type_cache = array();
	$this->email_class_name_cache      = array();
}