Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\Utilities

DeclarationBlockParser::clearCache │ public static │ WC 1.0

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() code WC 11.3.0

public static function clearCache(): void
{
    self::$cache = [];
}