Skip to content

Commit e01ceaa

Browse files
author
epriestley
committed
Provide 'bin/cache', for managing caches
Summary: See <https://github.com/facebook/phabricator/issues/323>. We have a very old cache management script which doesn't purge all the modern caches (and does purge some caches which are no longer in use). Update it so it purges all the modern caches (remarkup, general, changeset), no longer purges outdated caches, and is easier to use. Also delete a lot of "this script has moved" scripts from the last few rounds of similar cleanup, I believe all of these have been in master for at least several months, which should be enough time for users to get used to the new stuff. Test Plan: Ran `bin/cache` with various arguments. Verified caches were purged. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D5978
1 parent 3990b38 commit e01ceaa

14 files changed

+138
-180
lines changed

bin/cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/cache/manage_cache.php

scripts/cache/manage_cache.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
$root = dirname(dirname(dirname(__FILE__)));
5+
require_once $root.'/scripts/__init_script__.php';
6+
7+
$args = new PhutilArgumentParser($argv);
8+
$args->setTagline('manage mail');
9+
$args->setSynopsis(<<<EOSYNOPSIS
10+
**cache** __command__ [__options__]
11+
Manage Phabricator caches.
12+
13+
EOSYNOPSIS
14+
);
15+
$args->parseStandardArguments();
16+
17+
$workflows = array(
18+
new PhabricatorCacheManagementPurgeWorkflow(),
19+
new PhutilHelpArgumentWorkflow(),
20+
);
21+
22+
$args->parseWorkflows($workflows);

scripts/repository/discover.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/repository/parse_one_commit.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/repository/pull.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/repository/reparse_all_commit_messages.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/search/index_one_commit.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/search/reindex_all_users.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/search/reindex_everything.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/sql/upgrade_schema.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)