1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 11:11:28 +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

@@ -1,6 +1,6 @@
<?php
define('EXPECTED_CONFIG_VERSION', 26);
define('SCHEMA_VERSION', 112);
define('SCHEMA_VERSION', 113);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);

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;
}
}
}