Skip to content
Snippets Groups Projects
Commit 7771fab2 authored by Steven Wittens's avatar Steven Wittens
Browse files

Aggregator.module: code comments say items older than 3 months get discarded...

Aggregator.module: code comments say items older than 3 months get discarded automatically, but the limit in the code is in fact set for 2 weeks.
Changing to 3 months (caught by drumm).
parent 79348690
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -558,7 +558,7 @@ function aggregator_parse_feed(&$data, $feed) {
** Remove all items that are older than 3 months:
*/
$age = time() - 1209600; // 3 month
$age = time() - 8035200; // 60 * 60 * 24 * 31 * 3
$result = db_query('SELECT iid FROM {aggregator_item} WHERE fid = %d AND timestamp < %d', $feed['fid'], $age);
if (db_num_rows($result)) {
......
......@@ -558,7 +558,7 @@ function aggregator_parse_feed(&$data, $feed) {
** Remove all items that are older than 3 months:
*/
$age = time() - 1209600; // 3 month
$age = time() - 8035200; // 60 * 60 * 24 * 31 * 3
$result = db_query('SELECT iid FROM {aggregator_item} WHERE fid = %d AND timestamp < %d', $feed['fid'], $age);
if (db_num_rows($result)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment