wp/wp-includes/SimplePie/Cache/Redis.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   150         $data = $this->cache->get($this->name);
   150         $data = $this->cache->get($this->name);
   151 
   151 
   152         if ($data !== false) {
   152         if ($data !== false) {
   153             $return = $this->cache->set($this->name, $data);
   153             $return = $this->cache->set($this->name, $data);
   154             if ($this->options['expire']) {
   154             if ($this->options['expire']) {
   155                 return $this->cache->expire($this->name, $this->ttl);
   155                 return $this->cache->expire($this->name, $this->options['expire']);
   156             }
   156             }
   157             return $return;
   157             return $return;
   158         }
   158         }
   159 
   159 
   160         return false;
   160         return false;