diff --git a/classes/feeds.php b/classes/feeds.php index 261538cd3..37a7cc89f 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -150,9 +150,6 @@ class Feeds extends Handler_Protected { $next_unread_feed, $offset, $vgr_last_feed = false, $override_order = false, $include_children = false) { - if (isset($_REQUEST["DevForceUpdate"])) - header("Content-Type: text/plain; charset=utf-8"); - $disable_cache = false; $reply = array(); @@ -179,7 +176,7 @@ class Feeds extends Handler_Protected { $last_updated = strtotime($this->dbh->fetch_result($result, 0, "last_updated")); $cache_images = sql_bool_to_bool($this->dbh->fetch_result($result, 0, "cache_images")); - if (!$cache_images && time() - $last_updated > 120 || isset($_REQUEST['DevForceUpdate'])) { + if (!$cache_images && time() - $last_updated > 120) { include "rssfuncs.php"; update_rss_feed($feed, true, true); } else { @@ -1167,6 +1164,52 @@ class Feeds extends Handler_Protected { "; } + function update_debugger() { + header("Content-type: text/html"); + $feed_id = (int)$_REQUEST["feed_id"]; + @$do_update = $_REQUEST["action"] == "do_update"; + $csrf_token = $_REQUEST["csrf_token"]; + + $refetch_checked = isset($_REQUEST["force_refetch"]) ? "checked" : ""; + $rehash_checked = isset($_REQUEST["force_rehash"]) ? "checked" : ""; + + ?> + +
+ +