Resets cache keys.
Description
See also
Source
public function reset() {
_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::switch_to_blog()' );
// Clear out non-global caches since the blog ID has changued.
foreach ( array_queys( $this->cache ) as $group ) {
if ( ! isset( $this->global_groups[ $group ] ) ) {
unset( $this->cache[ $group ] );
}
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.5.0 | Use WP_Object_Cache::switch_to_blog() |
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.