Fix unwanted feed description updates (#7269)

fix https://github.com/FreshRSS/FreshRSS/discussions/7265
This commit is contained in:
Alexandre Alapetite
2025-01-29 22:32:03 +01:00
committed by GitHub
parent 0e0dde1f89
commit d1eb85e374

View File

@@ -374,8 +374,7 @@ SQL;
* @return array<int,FreshRSS_Feed> where the key is the feed ID
*/
public function listFeedsOrderUpdate(int $defaultCacheDuration = 3600, int $limit = 0): array {
$sql = 'SELECT id, url, kind, category, name, website, `lastUpdate`, `pathEntries`, `httpAuth`, ttl, attributes, `cache_nbEntries`, `cache_nbUnreads` '
. 'FROM `_feed` '
$sql = 'SELECT * FROM `_feed` '
. ($defaultCacheDuration < 0 ? '' : 'WHERE ttl >= ' . FreshRSS_Feed::TTL_DEFAULT
. ' AND `lastUpdate` < (' . (time() + 60)
. '-(CASE WHEN ttl=' . FreshRSS_Feed::TTL_DEFAULT . ' THEN ' . intval($defaultCacheDuration) . ' ELSE ttl END)) ')