SimplePie_Cache_MySQL::touch() public WP 1.0
Set the last modified time to the current time
{} Это метод класса: SimplePie_Cache_MySQL{}
Хуков нет.
Возвращает
true/false
. Success status
Использование
$SimplePie_Cache_MySQL = new SimplePie_Cache_MySQL(); $SimplePie_Cache_MySQL->touch();
Код SimplePie_Cache_MySQL::touch() SimplePie Cache MySQL::touch WP 5.7
public function touch()
{
if ($this->mysql === null)
{
return false;
}
$query = $this->mysql->prepare('UPDATE `' . $this->options['extras']['prefix'] . 'cache_data` SET `mtime` = :time WHERE `id` = :id');
$query->bindValue(':time', time());
$query->bindValue(':id', $this->id);
return $query->execute() && $query->rowCount() > 0;
}