public static function refreshProfiles()
    {
        $profile = new static();

        $staleDate = time() - ($profile->daysUntilStale() * 86400);

        $profiles = static::findAll([
            'where' => [
                'access_token <> ""',
                'last_refreshed < '.$staleDate, ],
            'limit' => $profile->numProfilesToRefresh(),
            'sortBy' => 'last_refreshed DESC', ]);

        foreach ($profiles as $profile) {
            $profile->refreshProfile();
        }

        return true;
    }