WordPress at a glance
function is not described

WP_Feed_Cache_Transient::touch() public WP 2.8.0

Sets mod transient.

{} It's a 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.

Code of WP_Feed_Cache_Transient::touch() WP 5.7.2

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