Changeset 47733 for trunk/src/wp-includes/SimplePie/Cache/Memcache.php
- Timestamp:
- 05/01/2020 02:24:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/Cache/Memcache.php
r22798 r47733 6 6 * Takes the hard work out of managing a complete RSS/Atom solution. 7 7 * 8 * Copyright (c) 2004-201 2, Ryan Parman, GeoffreySneddon, Ryan McCue, and contributors8 * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors 9 9 * All rights reserved. 10 10 * … … 34 34 * 35 35 * @package SimplePie 36 * @version 1.3.1 37 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue 36 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue 38 37 * @author Ryan Parman 39 * @author GeoffreySneddon38 * @author Sam Sneddon 40 39 * @author Ryan McCue 41 40 * @link http://simplepie.org/ SimplePie … … 96 95 ), 97 96 ); 98 $parsed = SimplePie_Cache::parse_URL($location); 99 $this->options['host'] = empty($parsed['host']) ? $this->options['host'] : $parsed['host']; 100 $this->options['port'] = empty($parsed['port']) ? $this->options['port'] : $parsed['port']; 101 $this->options['extras'] = array_merge($this->options['extras'], $parsed['extras']); 97 $this->options = SimplePie_Misc::array_merge_recursive($this->options, SimplePie_Cache::parse_URL($location)); 98 102 99 $this->name = $this->options['extras']['prefix'] . md5("$name:$type"); 103 100 … … 148 145 if ($data !== false) 149 146 { 150 // essentially ignore the mtime because Memcache expires on it 's own147 // essentially ignore the mtime because Memcache expires on its own 151 148 return time(); 152 149 } … … 166 163 if ($data !== false) 167 164 { 168 return $this->cache->set($this->name, $data, MEMCACHE_COMPRESSED, (int) $this-> duration);165 return $this->cache->set($this->name, $data, MEMCACHE_COMPRESSED, (int) $this->options['extras']['timeout']); 169 166 } 170 167
Note: See TracChangeset
for help on using the changeset viewer.