[BUGFIX] Improvement of LanguageCacheClearer
[Packages/TYPO3.CMS.git] / typo3 / sysext / lang / Classes / LanguageCacheClearer.php
index 51a61e7..f7950cf 100644 (file)
@@ -68,9 +68,8 @@ class LanguageCacheClearer {
 
                if (isset($GLOBALS['BE_USER']) && $isValidCall) {
                        $GLOBALS['BE_USER']->writelog(3, 1, 0, 0, '[lang]: User %s has cleared the language cache', array($GLOBALS['BE_USER']->user['username']));
+                       $this->cacheInstance->flush();
                }
-
-               $this->cacheInstance->flush();
        }
 
 }