Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateChangeSummary::reset_cache
Drop every cached change-summary transient. Test-only — production invalidation is automatic via the content-hash key.
Method of the class: WCEmailTemplateChangeSummary{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WCEmailTemplateChangeSummary::reset_cache(): void;
Changelog
| Since 10.9.0 | Introduced. |
WCEmailTemplateChangeSummary::reset_cache() WCEmailTemplateChangeSummary::reset cache code WC 10.9.1
public static function reset_cache(): void {
global $wpdb;
$wpdb->query(
$wpdb->prepare(
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
$wpdb->esc_like( '_transient_wc_email_change_summary_' ) . '%',
$wpdb->esc_like( '_transient_timeout_wc_email_change_summary_' ) . '%'
)
);
}