I have numerous local feeds and some of these have more than 10 items.

My cron job will happily keep adding items to feeds in excess of 10 items. And this all works well.

But if I use the Aggregator page "remove items" & then "Update Items" link, only the latest 10 items are added. I can not find a way to add the other back in or what is causing it to limit them to 10.

Anyone know how I can configure Drupal to add all items again, not be limited to only 10?

Comments

CarAddict’s picture

Still haven't found a solution to this and now getting a bit desperate. So any help would be really appreciated. Thanks.

CarAddict’s picture

Tried "remove items" link on Aggregator page for a specific feed, then manually ran a cron job to re-populate the feed. Same problem, it will only add the latest 10 items.

But has no problem adding more than 10 if I add more items to feed and then manually run the cron.

Surely there is a way to increase this 10 item maximum to feeds as it will happily go over 10 when subsequent items are added.

mcd’s picture

I find that most of these limits are hard-coded in the drupal modules themselves. I was having problems with /aggregator/rss showing only 10 items, so the feedreader with which I read my aggregator remotely would consistently miss items and even entire sources.

I went into aggregator module and changed variable_get('feed_default_items', 10) to variable_get('feed_default_items', 100) in two places. (Your code may vary; I was experimenting using an old drupal 5.3 testbed.)

Apparently one of those values controls the aggregator feed size, and the other controls how many items are added to a particular feed on refresh. I did not experiment further to see which was which.

mcd’s picture

There are instructions here http://drupal.org/node/57569 for adding more values to the list so you can set the value of feed_default_items higher through an admin page (Content Management -> RSS Publishing), but doing so will affect the feed size of your own RSS feeds. It will also keep you from controlling the sizes of the main aggregator feed and the individual imported feeds separately (as I ended up doing).

The same issue would presumably affect feed_item_length (titles/teasers/full text), which controls both incoming feeds for the aggregator and outbound RSS feeds for your site.