aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-03-31 14:15:51 +0200
committerGravatar GitHub <noreply@github.com> 2020-03-31 14:15:51 +0200
commitcedbbff58236dd77cd31c2eaf6845a5d059e47f2 (patch)
tree070d0c3a6610fd690493fb722412d70e1dc224d1 /app
parentecd05088fa5653ab0076f1d5a9243a2ec869c0d0 (diff)
Allow feed to be actualized after being truncated (#2862)
Before, on had to wait for the cache to expire before being able to refresh a feed that had been truncated via the Web interface. Now, one can "delete all articles" and hit "actualize" imediately after without problem. Useful for testing filters, debugging e.g. https://github.com/FreshRSS/FreshRSS/issues/2806
Diffstat (limited to 'app')
-rw-r--r--app/Models/FeedDAO.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php
index 417b37773..01f0b10f6 100644
--- a/app/Models/FeedDAO.php
+++ b/app/Models/FeedDAO.php
@@ -407,7 +407,7 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
$affected = $stm->rowCount();
$sql = 'UPDATE `_feed` '
- . 'SET `cache_nbEntries`=0, `cache_nbUnreads`=0 WHERE id=:id';
+ . 'SET `cache_nbEntries`=0, `cache_nbUnreads`=0, `lastUpdate`=0 WHERE id=:id';
$stm = $this->pdo->prepare($sql);
$stm->bindParam(':id', $id, PDO::PARAM_INT);
if (!($stm && $stm->execute())) {