From 7771fab25c2230f1ff547c4f2c7ba37909709068 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 14 Sep 2004 01:58:00 +0000 Subject: 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). --- modules/aggregator/aggregator.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/aggregator/aggregator.module') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 30a14a233..7c16f06dc 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -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)) { -- cgit v1.2.3