Assembla home | Assembla project page
 

Changeset 280

Show
Ignore:
Timestamp:
08/06/08 10:54:00 (4 months ago)
Author:
Seldaek
Message:

+ Added feedticker ini setting to disable the buffering : feedticker.smart_buffer (defaults to true)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/FeedTicker.php

    r278 r280  
    9494 
    9595    /** 
     96         * If true, the new feed items are buffered until something happens on 
     97         * the channel, indicating some kind of presence / readership is available 
     98         * 
     99         * @var bool 
     100         */ 
     101    protected $smartBuffer = true; 
     102 
     103    /** 
    96104     * Processes necessary configuration setting values. 
    97105     * 
     
    116124        $globalUrl = trim($this->getPluginIni('filter_url')); 
    117125        $globalArticle = trim($this->getPluginIni('filter_article')); 
     126        if ($this->getPluginIni('smart_buffer') !== null) { 
     127                $this->smartBuffer = (bool) $this->getPluginIni('smart_buffer'); 
     128        } 
    118129 
    119130        $i = 0; 
     
    292303            $this->cache[$id] = $articles; 
    293304        } 
     305 
     306        if (!$this->smartBuffer) { 
     307            $this->checkQueue(); 
     308        } 
    294309    } 
    295310 
  • trunk/Phergie/phergie.ini

    r274 r280  
    162162 
    163163; feedticker.fetch : 
    164 ;    the frequency, in seconds, at which the feeds are checked for new data; 
     164;    the frequency, in minutes, at which the feeds are checked for new data; 
    165165;    the default is 30 minutes 
    166166feedticker.fetch = 30 
     
    170170;    sent to the channel; the default is 5 minutes 
    171171feedticker.post = 5 
     172 
     173; feedticker.smart_buffer : 
     174;    if true, the new feed items are buffered until something happens on 
     175;    the channel, indicating some kind of presence / readership is available 
     176;    the default is true 
     177feedticker.smart_buffer = true 
    172178 
    173179; feedticker.format :