Changeset 1768
- Timestamp:
- 10/19/07 17:00:43 (14 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/extlib/rss_dbcache.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/extlib/rss_dbcache.inc
r1767 r1768 117 117 118 118 // Lets hope that the web server and sql server have their clocks in sync 119 $age = time() - $dateRefreshed;119 $age = (time() - $dateRefreshed) / 60; 120 120 121 121 if (!$refreshInterval || ($refreshInterval <= 60)) { 122 122 // We should change the Gregarius UA if we allow refreshInterval to be small 123 123 $refreshInterval = $this->MAX_AGE; 124 } else {125 $refreshInterval = $refreshInterval * 60;126 124 } 127 125 128 setProperty($cid, 'rss.config.refreshdate', 'feed', $dateRefreshed);126 setProperty($cid, 'rss.config.refreshdate', 'feed', time()); 129 127 130 if ( $refreshInterval > =$age ) {128 if ( $refreshInterval > $age ) { 131 129 // object exists and is current 132 print("HIT");133 130 return 'HIT'; 134 131 } else { 135 132 // object exists but is old 136 print("STALE");137 133 return 'STALE'; 138 134 }
