update_rss_feed: remove memcache support

master
Andrew Dolgov 15 years ago
parent 505f2f0e6c
commit 6e4f0519b7

@ -602,15 +602,6 @@
error_reporting(0);
}
$obj_id = md5("FEEDOBJ:$fetch_url");
if ($memcache && $obj = $memcache->get($obj_id)) {
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
_debug("update_rss_feed: data found in memcache [$obj_id]");
}
$rss = $obj;
} else {
if (!$use_simplepie) {
$rss = fetch_rss($fetch_url);
} else {
@ -620,7 +611,7 @@
$rss = new SimplePie();
$rss->set_useragent(SIMPLEPIE_USERAGENT . MAGPIE_USER_AGENT_EXT);
# $rss->set_timeout(10);
# $rss->set_timeout(10);
$rss->set_feed_url($fetch_url);
$rss->set_output_encoding('UTF-8');
@ -645,8 +636,6 @@
$rss->init();
}
if ($rss && $memcache) $memcache->add($obj_id, $rss, MEMCACHE_COMPRESSED, 300);
}
// print_r($rss);

Loading…
Cancel
Save