summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-31 19:28:36 +0400
committerAndrew Dolgov <[email protected]>2013-03-31 19:28:36 +0400
commit5e736e4592d27107d69d9b7fbd19ae91b209956e (patch)
tree5ab7f9e709ce2d76ed5c53df60e92b023c58c2e5 /include/rssfuncs.php
parent133420aa8d9bb2e30775e50f37738d628fc8f42c (diff)
implement stop action
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 3bce14d33..e3b1e44b2 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -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;
}
}
}