WP_Theme::cache_delete()
Clears the cache for the theme.
Source
File: wp-includes/class-wp-theme.php
public function cache_delete() {
foreach ( array( 'theme', 'screenshot', 'headers', 'post_templates' ) as $key )
wp_cache_delete( $key . '-' . $this->cache_hash, 'themes' );
$this->template = $this->textdomain_loaded = $this->theme_root_uri = $this->parent = $this->errors = $this->headers_sanitized = $this->name_translated = null;
$this->headers = array();
$this->__construct( $this->stylesheet, $this->theme_root );
}
Changelog
Version | Description |
---|---|
WP-3.4.0 | Introduced. |