Tribe__Context::refresh( string $key = null )

Clears the context cache forcing a re-fetch of the variables from the context.


Parameters

$key

(string) (Optional) An optional specific key to refresh, if passed only this key will be refreshed.

Default value: null


Top ↑

Source

File: src/Tribe/Context.php

	public function refresh( $key = null ) {
		if ( null !== $key ) {
			unset( $this->request_cache[ $key ] );
		} else {
			$this->request_cache = array();
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.