I imported a lot of feeds on my site today, and I noticed that the feeds are not automatically imported when _cron() is run. This is 'cause the function looks like this :
function import_cron() {
$result = db_query("SELECT * FROM feed WHERE timestamp + refresh < ". time());
while ($feed = db_fetch_array($result)) {
import_refresh($feed);
}
}

when it should look like this :
function import_cron() {
$result = db_query("SELECT * FROM feed WHERE (timestamp + refresh < ". time() .") or (timestamp IS NULL)");
while ($feed = db_fetch_array($result)) {
import_refresh($feed);
}
}

It's not that important with a few feeds, but with larger (I got about 80 now), it gets tiresome to click 'update items' for every feed ;-)

Comments

killes@www.drop.org’s picture

The last message revealed a bug in project.module. All text after the first < got lost in the email.

Anonymous’s picture

Assigned: Unassigned » Kjartan

Fixed by changing the table definition to not allow null values.

Anonymous’s picture

Priority: Major » Normal