Changeset 1762 for trunk/gregarius/extlib/rss_dbcache.inc
- Timestamp:
- 10/17/07 22:58:01 (14 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/extlib/rss_dbcache.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/extlib/rss_dbcache.inc
r1534 r1762 109 109 } 110 110 111 $res = rss_query("select UNIX_TIMESTAMP(daterefreshed) as ts , refreshintervalfrom " . getTable("channels")111 $res = rss_query("select UNIX_TIMESTAMP(daterefreshed) as ts from " . getTable("channels") 112 112 . " where id=$cid"); 113 113 if ( ! $res ) { … … 116 116 } 117 117 118 list($dateRefreshed, $refreshInterval) = rss_fetch_row($res); 119 120 // Lets hope that the web server and sql server have their clocks in sync 118 list($dateRefreshed) = rss_fetch_row($res); 119 $refreshInterval = getProperty($cid, 'rss.config.refreshinterval'); 120 if(true == empty($refreshInterval)) { 121 $refreshInterval = 60; 122 } 123 124 // Lets hope that the web server and sql server have their clocks in sync 121 125 $age = time() - $dateRefreshed; 126 122 127 if (!$refreshInterval || ($refreshInterval < 10)) { 123 128 // We should change the Gregarius UA if we allow refreshInterval to be small
