W3cubDocs

/WordPress

WP_Theme::delete_pattern_cache()

Clears block pattern cache.

Source

public function delete_pattern_cache() {
	delete_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash );
}

Changelog

Version Description
6.6.0 Uses transients to cache regardless of site environment.
6.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/delete_pattern_cache