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
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment