wc_clear_template_cache()
Clear the template cache.
Description Description
Source Source
File: includes/wc-core-functions.php
function wc_clear_template_cache() { $cached_templates = wp_cache_get( 'cached_templates', 'woocommerce' ); if ( is_array( $cached_templates ) ) { foreach ( $cached_templates as $cache_key ) { wp_cache_delete( $cache_key, 'woocommerce' ); } wp_cache_delete( 'cached_templates', 'woocommerce' ); } }
Changelog Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |