Tribe__Context::refresh( string $key = null )
Clears the context cache forcing a re-fetch of the variables from the context.
Contents
Parameters
- $key
-
(string) (Optional) An optional specific key to refresh, if passed only this key will be refreshed.
Default value: null
Source
File: src/Tribe/Context.php
public function refresh( $key = null ) {
if ( null !== $key ) {
unset( $this->request_cache[ $key ] );
} else {
$this->request_cache = array();
}
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Introduced. |