Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\Utilities
DeclarationBlockParser::clearCache
Clears the static declaration block cache.
This should be called between processing separate HTML documents to prevent unbounded memory growth in long-running processes.
Method of the class: DeclarationBlockParser{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = DeclarationBlockParser::clearCache(): void;
DeclarationBlockParser::clearCache() DeclarationBlockParser::clearCache code WC 11.3.0
public static function clearCache(): void
{
self::$cache = [];
}