new: [CLI] Added cleanCaches command

pull/4949/head
iglocska 2019-08-01 15:15:20 +02:00
parent a39306dfe5
commit c6c8dc1696
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 7 additions and 0 deletions

View File

@ -499,4 +499,11 @@ class AdminShell extends AppShell
echo __('DB was never successfully updated or we are on a fresh install') . PHP_EOL;
}
}
public function cleanCaches()
{
echo 'Cleaning caches...' . PHP_EOL;
$this->Server->cleanCacheFiles();
echo '...caches lost in time, like tears in rain.' . PHP_EOL;
}
}