WordPress at Your Fingertips
function is not described

SimplePie_Cache_Redis::touch() public WP 1.0

Set the last modified time to the current time

{} It's a method of the class: SimplePie_Cache_Redis{}

No Hooks.


true|false. Success status


$SimplePie_Cache_Redis = new SimplePie_Cache_Redis();

Code of SimplePie_Cache_Redis::touch() WP 5.8.2

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;