aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-09 23:37:56 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-09 23:37:56 +0200
commit993466844405bd9854d890d6d5ebf763ed8b78cb (patch)
treec47780d9d2265915dabf7c38e7965cceef14d531 /app/Models/Feed.php
parent57a21331e34e9480d542d0ced59c21075670f39a (diff)
SQL: more robust purge
https://github.com/FreshRSS/FreshRSS/issues/798 https://github.com/FreshRSS/FreshRSS/issues/493
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 27c83ffd5..5d377de9a 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -245,7 +245,7 @@ class FreshRSS_Feed extends Minz_Model {
$this->_url($clean_url);
}
- if (($mtime === true) ||($mtime > $this->lastUpdate)) {
+ if (($mtime === true) || ($mtime > $this->lastUpdate)) {
Minz_Log::notice('FreshRSS no cache ' . $mtime . ' > ' . $this->lastUpdate . ' for ' . $clean_url);
$this->loadEntries($feed); // et on charge les articles du flux
} else {
@@ -255,7 +255,6 @@ class FreshRSS_Feed extends Minz_Model {
$feed->__destruct(); //http://simplepie.org/wiki/faq/i_m_getting_memory_leaks
unset($feed);
- //TODO: Return a different information in case of cache/no-cache, and give access to the GUIDs in case of cache
}
}
}