[TC-481] change ort to expire yum cache rather than purge More efficient to cause revalidation rather than re-fetch the same metadata over and over.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7c35724c Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7c35724c Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7c35724c Branch: refs/heads/master Commit: 7c35724c29abb23f5f28ee3bfa20f4d6cc2d87ed Parents: 646f7e1 Author: Jason Tucker <jason_tuc...@comcast.com> Authored: Thu Jul 27 14:37:41 2017 -0400 Committer: Dewayne Richardson <dewr...@apache.org> Committed: Mon Jul 31 10:57:59 2017 -0600 ---------------------------------------------------------------------- traffic_ops/bin/traffic_ops_ort.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c35724c/traffic_ops/bin/traffic_ops_ort.pl ---------------------------------------------------------------------- diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl index a88ed68..209c634 100755 --- a/traffic_ops/bin/traffic_ops_ort.pl +++ b/traffic_ops/bin/traffic_ops_ort.pl @@ -164,7 +164,7 @@ my $YUM_OPTS = ""; my $TS_HOME = "/opt/trafficserver"; my $TRAFFIC_LINE = $TS_HOME . "/bin/traffic_line"; -my $out = `/usr/bin/yum $YUM_OPTS clean metadata 2>&1`; +my $out = `/usr/bin/yum $YUM_OPTS clean expire-cache 2>&1`; my $return = &check_output($out); my @config_files = ();