WP_Feed_Cache_Transient::touch()publicWP 2.8.0

Sets mod transient.

Method of the class: WP_Feed_Cache_Transient{}

No Hooks.

Return

true|false. False if value was not set and true if value was set.

Usage

$WP_Feed_Cache_Transient = new WP_Feed_Cache_Transient();
$WP_Feed_Cache_Transient->touch();

Changelog

Since 2.8.0 Introduced.

WP_Feed_Cache_Transient::touch() code WP 6.1.1

public function touch() {
	return set_transient( $this->mod_name, time(), $this->lifetime );
}