/**
* Gets theme data from cache.
*
* Cache entries are keyed by the theme and the type of data.
*
* @since 3.4.0
*
* @param string $key Type of data to retrieve (theme, screenshot, headers, post_templates)
* @return mixed Retrieved data
*/
private function cache_get( $key ) { return wp_cache_get( $key . '-' .
$this->cache_hash, 'themes'
);
} /**
* Clears the cache for the theme.
*
* @since 3.4.0
*/
public function cache_delete() { foreach ( array
( 'theme', 'screenshot', 'headers', 'post_templates'
) as $key ) { wp_cache_delete( $key . '-' .
$this->cache_hash, 'themes'
);
}