$app = new FreshRSS();
$system_conf = Minz_Configuration::get('system');
$system_conf->auth_type = 'none';
// avoid necessity to be logged in (not saved!)
// Create the list of users to actualize.
// Users are processed in a random order but always start with admin
$users = listUsers();
shuffle($users);
if ($system_conf->default_user !== '') {
    array_unshift($users, $system_conf->default_user);
    $users = array_unique($users);
}
$limits = $system_conf->limits;
$min_last_activity = time() - $limits['max_inactivity'];
foreach ($users as $user) {
    if ($user !== $system_conf->default_user && FreshRSS_UserDAO::mtime($user) < $min_last_activity) {
        Minz_Log::notice('FreshRSS skip inactive user ' . $user, $log_file);
        if (defined('STDOUT')) {
            fwrite(STDOUT, 'FreshRSS skip inactive user ' . $user . "\n");
            //Unbuffered
        }
        continue;
    }
    Minz_Log::notice('FreshRSS actualize ' . $user, $log_file);
    if (defined('STDOUT')) {
        fwrite(STDOUT, 'Actualize ' . $user . "...\n");
        //Unbuffered
    }
    echo $user, ' ';
    //Buffered
    Minz_Session::_param('currentUser', $user);