Commit b0ad83e6 authored by damjan's avatar damjan

[FEATURE] Clearing language cache after writing language file

parent 1f0e0a30
......@@ -32,6 +32,7 @@ use SGalinski\Lfeditor\Utility\Functions;
use SGalinski\Lfeditor\Utility\SgLib;
use SGalinski\Lfeditor\Utility\Typo3Lib;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Localization\Locales;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -447,6 +448,10 @@ class ConfigurationService extends AbstractService {
} catch (Exception $e) {
throw new LFException('failure.langfile.notDeleted', 0, '(' . $e->getMessage() . ')');
}
/** @var CacheManager $cacheManager */
$cacheManager = $this->objectManager->get('TYPO3\CMS\Core\Cache\CacheManager');
$cacheManager->getCache('l10n')->flush();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment