Aggregator update interval default

webchick - March 2, 2009 - 06:29
Project:Drupal
Version:8.x-dev
Component:aggregator.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed
Issue tags:drupal.org upgrade, Novice
Description

I noticed this defaults to 15 mins now. It seemed like this used to default to 1 hour. Is this change by design, or is it a bug?

#1

Gábor Hojtsy - March 2, 2009 - 09:11
Project:Drupal.org webmasters» Drupal
Version:<none>» 7.x-dev
Component:Other» aggregator.module

Looking at the code, this is due to the signature of http://api.drupal.org/api/function/aggregator_form_feed/6 which was added pre-file-split (so the history of aggregator.admin.inc is not enough to look at). The patch which added the 900 sec default in was committed by Steven and created by chx: #130971: The kitchen sink (remove notices, fix bugs, enhance code styling) Looks like this was an inadvertent modification to how it works, since the default inside the function is 3600.

This bug / inconsistency is still present in Drupal 7, so should be fixed there first.

#2

karschsp - March 4, 2009 - 17:11
Issue tags:+Novice

This would be a good one for the novice queue.

#3

alex_b - March 11, 2009 - 17:34
Title:Aggregator module update interval» Aggregator update interval default

Right now it defaults to 1 hour actually, because there is a double check for whether $feed->refresh is present - see aggregator_form_feed()

  if (empty($feed->refresh)) {
    $feed->refresh = 3600;
  }
  // ...
  $form['refresh'] = array('#type' => 'select',
    '#title' => t('Update interval'),
    '#default_value' => isset($feed->refresh) ? $feed->refresh : 900,
    '#options' => $period,
    '#description' => t('The length of time between feed updates. Requires a correctly configured <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status'))),
  );

However, I think we should not just remove this double check and set the default to 30 minutes, but

* we should remove the 15 minutes options (< 30 min update interval is overly aggressive. < 30 minutes behavior for corner cases can be changed with form_alter).
* we should add a configurable default on the settings form ('aggregator_default_refresh').

This patch will depend on #293318: Make Aggregator feeds into 1st class Drupal nodes because #293318 moves the settings form to the content type form.

#4

JamesAn - March 31, 2009 - 22:02

This patch might as well depend on #19646: Aggregator: Feed Suspend Option as well, as #19646 adds a 'Never' option to the update interval so that feed updates can be suspended indefinitely.

#5

JamesAn - May 29, 2009 - 21:09
Status:active» postponed

Just doing some spring (summer?) cleaning.

This is postponed until #293318: Make Aggregator feeds into 1st class Drupal nodes is finished.

#6

JamesAn - October 28, 2009 - 06:13
Version:7.x-dev» 8.x-dev

As #293318: Make Aggregator feeds into 1st class Drupal nodes is now slated for D8, this is deferred as well.

 
 

Drupal is a registered trademark of Dries Buytaert.