Changeset 1769

Show
Ignore:
Timestamp:
10/19/07 19:55:51 (11 months ago)
Author:
cfriesen
Message:

Only update the timestamp if it is going to be updated.
Somehow the global default time is being put in seconds.

Files:
1 modified

Legend:

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

    r1768 r1769  
    121121                if (!$refreshInterval || ($refreshInterval <= 60)) { 
    122122            // We should change the Gregarius UA if we allow refreshInterval to be small 
    123             $refreshInterval = $this->MAX_AGE; 
     123            $refreshInterval = 60; //$this->MAX_AGE; 
    124124                } 
    125125 
    126                 setProperty($cid, 'rss.config.refreshdate', 'feed', time()); 
     126//              print(time() . " " . $dateRefreshed . " " . $age . " " . $refreshInterval); 
    127127 
    128128        if ( $refreshInterval > $age ) { 
     
    131131        } else { 
    132132            // object exists but is old 
     133                        setProperty($cid, 'rss.config.refreshdate', 'feed', time()); 
    133134            return 'STALE'; 
    134135        }