/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/migrations/src/Command/Phinx
NameSizeModeActions
BaseCommand.php2320644editdlrm
CacheBuild.php18940644editdlrm
CacheClear.php19620644editdlrm
CommandTrait.php37330644editdlrm
Create.php41740644editdlrm
Dump.php40440644editdlrm
MarkMigrated.php75720644editdlrm
Migrate.php33370644editdlrm
Rollback.php33960644editdlrm
Seed.php29430644editdlrm
Status.php48370644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/migrations/src/Command/Phinx/CacheClear.php (1962B)
setName('orm-cache-clear') ->setDescription( 'Clear all metadata caches for the connection. ' . 'If a table name is provided, only that table will be removed.' ) ->addOption( 'connection', null, InputOption::VALUE_OPTIONAL, 'The connection to build/clear metadata cache data for.', 'default' ) ->addArgument( 'name', InputArgument::OPTIONAL, 'A specific table you want to clear/refresh cached data for.' ); } /** * @inheritDoc */ protected function execute(InputInterface $input, OutputInterface $output) { $schema = $this->_getSchema($input, $output); /** @var string $name */ $name = $input->getArgument('name'); if (!$schema) { return static::CODE_ERROR; } $tables = [$name]; if (empty($name)) { $tables = $schema->listTables(); } $cacher = $schema->getCacher(); foreach ($tables as $table) { $output->writeln(sprintf( 'Clearing metadata cache for %s', $table )); $cacher->delete($table); } $output->writeln('Cache clear complete'); return static::CODE_SUCCESS; } }