SimplePie_Cache_Redis::touch() public WP 1.0
Set the last modified time to the current time
{} Это метод класса: SimplePie_Cache_Redis{}
Хуков нет.
Возвращает
true|false
. Success status
Использование
$SimplePie_Cache_Redis = new SimplePie_Cache_Redis(); $SimplePie_Cache_Redis->touch();
Код SimplePie_Cache_Redis::touch() SimplePie Cache Redis::touch WP 5.7.1
public function touch() {
$data = $this->cache->get($this->name);
if ($data !== false) {
$return = $this->cache->set($this->name, $data);
if ($this->options['expire']) {
return $this->cache->expire($this->name, $this->ttl);
}
return $return;
}
return false;
}