Example #1
0
            JsonSerializer::clean('cache', 'json', $kwargs['outfile']);
        }
        if (isset($kwargs['serialize']['xml'])) {
            XmlSerializer::clean('cache', 'xml', $kwargs['outfile']);
        }
    } else {
        if (isset($kwargs['serialize']['json'])) {
            JsonSerializer::clean('cache', 'json');
        }
        if (isset($kwargs['serialize']['xml'])) {
            XmlSerializer::clean('cache', 'xml');
        }
    }
}
$files = dojo_get_files($args);
$nodes = new Freezer('cache', 'nodes');
$resources = new Freezer('cache', 'resources');
print "=== PARSING FILES ===\n";
flush();
foreach ($files as $set) {
    list($namespace, $file) = $set;
    if (!$namespaces[$namespace]) {
        $namespaces[$namespace] = true;
    }
    $ctime = dojo_get_file_time($namespace, $file);
    if ($ctime == $resources->open($namespace . '%' . $file, null)) {
        continue;
    }
    printf("%-100s %6s KB\n", $namespace . '/' . $file, number_format(memory_get_usage() / 1024));
    flush();
    $contents = dojo_get_contents($namespace, $file);
Example #2
0
            JsonSerializer::clean('cache', 'json', $kwargs['outfile']);
        }
        if (isset($kwargs['serialize']['xml'])) {
            XmlSerializer::clean('cache', 'xml', $kwargs['outfile']);
        }
    } else {
        if (isset($kwargs['serialize']['json'])) {
            JsonSerializer::clean('cache', 'json');
        }
        if (isset($kwargs['serialize']['xml'])) {
            XmlSerializer::clean('cache', 'xml');
        }
    }
}
$files = dojo_get_files($args);
$nodes = new Freezer('cache', 'nodes');
$resources = new Freezer('cache', 'resources');
print "=== PARSING FILES ===\n";
flush();
foreach ($files as $set) {
    list($namespace, $file) = $set;
    if (!$namespaces[$namespace]) {
        $namespaces[$namespace] = true;
    }
    $ctime = dojo_get_file_time($namespace, $file);
    if ($ctime == $resources->open($namespace . '%' . $file, null)) {
        continue;
    }
    printf("%-100s %6s KB\n", $namespace . '/' . $file, number_format(memory_get_usage() / 1024));
    flush();
    $contents = dojo_get_contents($namespace, $file);