1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:15:56 +00:00

implement stop action

This commit is contained in:
Andrew Dolgov
2013-03-31 19:28:36 +04:00
parent 133420aa8d
commit 5e736e4592
6 changed files with 31 additions and 4 deletions

View File

@@ -283,9 +283,11 @@
_debug("update_rss_feed: fetching [$fetch_url] (ts: $cache_timestamp/$last_updated_timestamp)");
}
$force_refetch = isset($_REQUEST["force_refetch"]);
$feed_data = fetch_file_contents($fetch_url, false,
$auth_login, $auth_pass, false, $no_cache ? 15 : 45,
max($last_updated_timestamp, $cache_timestamp));
$force_refetch ? 0 : max($last_updated_timestamp, $cache_timestamp));
if ($debug_enabled) {
_debug("update_rss_feed: fetch done.");
@@ -1297,6 +1299,9 @@
if ($filter_match) {
foreach ($filter["actions"] AS $action) {
array_push($matches, $action);
// if Stop action encountered, perform no further processing
if ($action["type"] == "stop") return $matches;
}
}
}