This commit is contained in:
Paula Quispe
2017-01-11 17:05:48 -04:00
parent 76cfc5bd9e
commit 5bf63d9051
4 changed files with 25 additions and 5 deletions

View File

@@ -947,3 +947,18 @@ function run_migrate_self_service_value($args, $opts) {
$stop = microtime(true);
CLI::logging("<*> Migrating Self-Service records Process took " . ($stop - $start) . " seconds.\n");
}
function run_migrate_indexing_acv($args, $opts) {
G::LoadSystem('inputfilter');
$filter = new InputFilter();
$args = $filter->xssFilterHard($args);
$workspaces = get_workspaces_from_args($args);
$start = microtime(true);
CLI::logging("> Migrating and populating indexing for APP_CACHE_VIEW...\n");
foreach ($workspaces as $workspace) {
print_r('Indexing for APP_CACHE_VIEW: ' . pakeColor::colorize($workspace->name, 'INFO') . "\n");
$workspace->migratePopulateIndexingACV($workspace->name);
}
$stop = microtime(true);
CLI::logging("<*> Migrating an populating indexing for APP_CACHE_VIEW process took " . ($stop - $start) . " seconds.\n");
}