WordPress.org

Plugin Directory

Changeset 440895 for feedwordpress


Ignore:
Timestamp:
09/20/11 16:48:01 (6 years ago)
Author:
radgeek
Message:

Update timing / Base max_polls dynamically on update interval and number of feeds, rather than hardcoding at 10.

Location:
feedwordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/feedwordpress.php

    r440843 r440895  
    44Plugin URI: http://feedwordpress.radgeek.com/ 
    55Description: simple and flexible Atom/RSS syndication for WordPress 
    6 Version: 2011.0831 
     6Version: 2011.0920 
    77Author: Charles Johnson 
    88Author URI: http://radgeek.com/ 
     
    1212/** 
    1313 * @package FeedWordPress 
    14  * @version 2011.0831 
     14 * @version 2011.0920 
    1515 */ 
    1616 
     
    3535# -- Don't change these unless you know what you're doing... 
    3636 
    37 define ('FEEDWORDPRESS_VERSION', '2011.0831'); 
     37define ('FEEDWORDPRESS_VERSION', '2011.0920'); 
    3838define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'http://radgeek.com/contact'); 
    3939 
     
    10091009 
    10101010        $updateWindow = (int) get_option('feedwordpress_update_window', DEFAULT_UPDATE_PERIOD) * 60 /* sec/min */; 
    1011         $interval = (int) get_option('feedwordpress_freshness', FEEDWORDPRSS_FRESHNESS_INTERVAL); 
     1011        $interval = (int) get_option('feedwordpress_freshness', FEEDWORDPRESS_FRESHNESS_INTERVAL); 
    10121012        $portion = max( 
    1013             ceil(count($feed_set) / ($updateWindow / $interval)), 
     1013            (int) ceil(count($feed_set) / ($updateWindow / $interval)), 
    10141014            10 
    10151015        ); 
    1016          
     1016 
    10171017        $max_polls = apply_filters('feedwordpress_polls_per_update', get_option( 
    10181018            'feedwordpress_polls_per_update',   $portion 
    10191019        ), $uri); 
    1020          
    10211020 
    10221021        $feed_set = apply_filters('feedwordpress_update_feeds', $feed_set, $uri); 
  • feedwordpress/trunk/feedwordpresssyndicationpage.class.php

    r378536 r440895  
    208208        (strlen($_FILES['opml_upload']['name']) > 0)) : 
    209209            $in = 'tag:localhost'; 
     210             
     211            /*FIXME: check whether $_FILES['opml_upload']['error'] === UPLOAD_ERR_OK or not...*/  
    210212            $localData = file_get_contents($_FILES['opml_upload']['tmp_name']); 
    211213            $merge_all = true; 
Note: See TracChangeset for help on using the changeset viewer.