update_rss_feed: properly handle enginge changes when using memcached

This commit is contained in:
Andrew Dolgov 2010-03-29 11:26:39 +04:00
parent ed41f171cb
commit e656b9f7db
1 changed files with 3 additions and 5 deletions

View File

@ -1,10 +1,8 @@
<?php <?php
/* if ($_REQUEST["debug"]) { if ($_REQUEST["debug"]) {
define('DEFAULT_ERROR_LEVEL', E_ALL); define('DEFAULT_ERROR_LEVEL', E_ALL);
} else { }
define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE);
} */
require_once 'config.php'; require_once 'config.php';
@ -620,7 +618,7 @@
error_reporting(0); error_reporting(0);
} }
$obj_id = md5("FDATA:$fetch_url"); $obj_id = md5("FDATA:$use_simplepie:$fetch_url");
if ($memcache && $obj = $memcache->get($obj_id)) { if ($memcache && $obj = $memcache->get($obj_id)) {