protected function cleanCache($group = null)
{
$app = Factory::getApplication();
$options = ['defaultgroup' => $group ?: $this->option ?? $app->input->get('option'), 'cachebase' => $app->get('cache_path', JPATH_CACHE), 'result' => true];
try {
$cache = Factory::getContainer()->get(CacheControllerFactoryInterface::class)->createCacheController('callback', $options);
$cache->clean();
} catch (CacheExceptionInterface $exception) {
$options['result'] = false;
}
$this->dispatchEvent(new Event($this->event_clean_cache, $options));
}