diff options
| author | 2016-09-24 23:29:49 +0200 | |
|---|---|---|
| committer | 2016-09-24 23:29:49 +0200 | |
| commit | 324c83348ca44f3c13f4e0efeea25bbc96ed3b05 (patch) | |
| tree | a1d5d07e6b9e463a5ecb69df81de117d2a32839d /app/Models/Feed.php | |
| parent | 0a79d4085b18c5607438f8ebd56543508e7db3a8 (diff) | |
Refactor controller add feed
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 4403a23c4..658b9ccca 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -216,7 +216,7 @@ class FreshRSS_Feed extends Minz_Model { $this->nbEntries = intval($value); } - public function load($loadDetails = false) { + public function load($loadDetails = false, $noCache = false) { if ($this->url !== null) { if (CACHE_PATH === false) { throw new Minz_FileNotExistException( @@ -268,7 +268,7 @@ class FreshRSS_Feed extends Minz_Model { $this->_url($clean_url); } - if (($mtime === true) || ($mtime > $this->lastUpdate)) { + if (($mtime === true) || ($mtime > $this->lastUpdate) || $noCache) { //Minz_Log::debug('FreshRSS no cache ' . $mtime . ' > ' . $this->lastUpdate . ' for ' . $clean_url); $this->loadEntries($feed); // et on charge les articles du flux } else { |
