Assembla home | Assembla project page
 
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