• I have 700 feeds that are scheduled to update every 60 minutes. However, about 80% of these feeds updates very seldom. It would be great if FWP could check the history of feeds when prioritizing when it should be polled. A feed that hasn’t been updated in a week could be polled once every day. A feed that hasn’t been updated in a month could be polled every week etc. That would save enourmous resources.

    What I’m looking for is a way to handle this automatically. Maby there is a filter that can be used? syndicated_feed_ttl or syndicated_feed_automatic_ttl (documentation are missing for these filters so I’m not sure if/how they can be used)

    OR

    How about showing the info of _when_ the last time a new feed entry was found for each feed in the overview page? I could use this info to set down the TTL time for feeds manually.

    • This topic was modified 7 years, 2 months ago by niska.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter niska

    (@niska)

    I’ve tried using the action feedwordpress_check_feed in order to check the lastbuilddate. If more than one month old, then I want to modify update/window. Not sure how to actually do the modification. Any ideas?

    This is my code so far:

    function fwpd_ignorefeed ( $settings ) {
    
      if (is_array($settings) && $settings['feed/lastbuilddate']) {
        $time = strtotime($settings['feed/lastbuilddate']);
        if ($time > 0 && $time < strtotime('-1 month')) {
          // set $settings['update/window'] = 10080
          // save $settings
        }
      }
    }
    
    add_action('feedwordpress_check_feed', 'fwpd_ignorefeed');
    Thread Starter niska

    (@niska)

    I’m still trying to modify the update/window. Does anyone know how to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Prioritize what feeds that are polled for updates’ is closed to new replies.