Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | protected function execute(InputInterface $input, OutputInterface $output) |
||
38 | { |
||
39 | $io = new SymfonyStyle($input, $output); |
||
40 | $index = $this->getIndex($input->getOption('index')); |
||
41 | $index->clearCache(); |
||
42 | |||
43 | $io->success( |
||
44 | sprintf( |
||
45 | 'Elasticsearch `%s` index cache has been cleared.', |
||
46 | $index->getIndexName() |
||
47 | ) |
||
48 | ); |
||
49 | |||
50 | return 0; |
||
51 | } |
||
52 | } |
||
53 |