Fix missing cache reset after deleting custom language variables
authorMarcel Werk <burntime@woltlab.com>
Fri, 15 Jul 2022 13:35:01 +0000 (15:35 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 15 Jul 2022 13:35:01 +0000 (15:35 +0200)
wcfsetup/install/files/lib/data/language/item/LanguageItemAction.class.php

index 98809fbf378cf873a690d79375c274103ccb40b0..e7d0971e70f190e100cef7d7d86ad0d8a8e64882 100644 (file)
@@ -212,5 +212,8 @@ class LanguageItemAction extends AbstractDatabaseObjectAction
         $languageItemList->readObjects();
 
         (new self($languageItemList->getObjects(), 'delete'))->executeAction();
+
+        LanguageFactory::getInstance()->clearCache();
+        LanguageFactory::getInstance()->deleteLanguageCache();
     }
 }