aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-05 00:44:14 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-05 00:44:14 +0200
commit9e34d7275eb936e1a08b872aca7adbce5a5674c5 (patch)
tree4f7f0af89c23f3a4e18e551f7c5755dda4368a6d /app/Controllers/feedController.php
parent05cabe99ae48a187a77e0246dfffc60f2434b5e5 (diff)
Typo
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 15f373833..d85a53446 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -271,10 +271,10 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
if ($ttl == -1) {
continue; //Feed refresh is disabled
}
- if (feed->lastUpdate() < time() - ($ttl == -2 ? FreshRSS_Context::$user_conf->ttl_default : $ttl)) {
- //Too early to refresh from source, but check if the feed was already updated by another user
- $mtime = feed->cacheModifiedTime();
- if (feed->lastUpdate() >= $mtime + 10) {
+ if ($feed->lastUpdate() < time() + 60 - ($ttl == -2 ? FreshRSS_Context::$user_conf->ttl_default : $ttl)) {
+ //Too early to refresh from source, but check whether the feed was updated by another user
+ $mtime = $feed->cacheModifiedTime();
+ if ($feed->lastUpdate() >= $mtime + 10) {
continue; //Nothing newer from other users
}
Minz_Log::debug($feed->url() . ' was recently updated by another user');