private static function build_temp_cache()
 {
     $pso = pts_storage_object::recover_from_file(PTS_TEMP_STORAGE);
     if ($pso == false) {
         $pso = new pts_storage_object();
     }
     $pso->add_object('environmental_variables_for_modules', pts_module_manager::modules_environmental_variables());
     $pso->add_object('command_alias_list', pts_documentation::client_commands_aliases());
     $pso->save_to_file(PTS_TEMP_STORAGE);
 }
// Initalize the Phoronix Test Suite (pts-core) client
$pass_args = array();
if (is_file(PTS_PATH . 'pts-core/commands/' . $sent_command . '.php') == false) {
    $replaced = false;
    if (pts_module::valid_run_command($sent_command)) {
        $replaced = true;
    } else {
        if (isset($argv[1]) && strpos($argv[1], '.openbenchmarking') !== false && is_readable($argv[1])) {
            $sent_command = 'openbenchmarking_launcher';
            $argv[2] = $argv[1];
            $argc = 3;
            $replaced = true;
        } else {
            $aliases = pts_storage_object::read_from_file(PTS_TEMP_STORAGE, 'command_alias_list');
            if ($aliases == null) {
                $aliases = pts_documentation::client_commands_aliases();
            }
            if (isset($aliases[$sent_command])) {
                $sent_command = $aliases[$sent_command];
                $replaced = true;
            }
        }
    }
    if ($replaced == false) {
        // Show help command, since there are no valid commands
        $sent_command = 'help';
    }
}
pts_define('PTS_USER_LOCK', function_exists('posix_getpid') ? PTS_USER_PATH . 'run-lock-' . posix_getpid() : tempnam(PTS_USER_PATH, 'run-lock-'));
if (QUICK_START == false) {
    if (pts_client::create_lock(PTS_USER_LOCK) == false) {