Changeset 1764

Show
Ignore:
Timestamp:
10/18/07 23:04:41 (12 months ago)
Author:
cfriesen
Message:

This is better.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/extlib/rss_dbcache.inc

    r1762 r1764  
    118118        list($dateRefreshed) = rss_fetch_row($res); 
    119119        $refreshInterval = getProperty($cid, 'rss.config.refreshinterval'); 
    120         if(true == empty($refreshInterval)) { 
    121             $refreshInterval = 60; 
    122         } 
    123120         
    124121          // Lets hope that the web server and sql server have their clocks in sync 
    125122        $age = time() - $dateRefreshed; 
    126123         
    127         if (!$refreshInterval || ($refreshInterval < 10)) { 
     124                if (!$refreshInterval || ($refreshInterval <= 60)) { 
    128125            // We should change the Gregarius UA if we allow refreshInterval to be small 
    129126            $refreshInterval = $this->MAX_AGE;