protected function cron_has_fresh_fetch($now) {
        $recent = $this->get_last_timefetched();

        if (empty($recent)) {
            return false;
        }

        if ($now < $recent) {
            $this->cron_mtrace('The most recent fetch is reported to be in the future, this is weird!');
            return true;
        }

        if ($now - $recent > 24 * HOURSECS) {
            return false;
        }

        return true;
    }
protected function cron_has_fresh_fetch($now) {
        $recent = $this->get_last_timefetched();

        if (empty($recent)) {
            return false;
        }

        if ($now < $recent) {
            $this->cron_mtrace('The most recent fetch is reported to be in the future, this is weird!');
            return true;
        }

        if ($now - $recent > 24 * HOURSECS) {
            return false;
        }

        return true;
    }
protected function cron_has_fresh_fetch ( $ now ) { $ recent = $ this -> get_last_timefetched ( ) ; if ( empty ( $ recent ) ) { return false ; } if ( $ now < $ recent ) { $ this -> cron_mtrace ( 'The most recent fetch is reported to be in the future, this is weird!' ) ; return true ; } if ( $ now - $ recent > 24 * HOURSECS ) { return false ; } return true ; }
Decide if the recently fetched data are still fresh enough

@param int $now current timestamp
@return bool true if no need to re-fetch, false otherwise
Decide if the recently fetched data are still fresh enough