Missing cache reset after manually adding phrases
authorAlexander Ebert <ebert@woltlab.com>
Mon, 11 Apr 2022 10:41:36 +0000 (12:41 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 11 Apr 2022 10:41:36 +0000 (12:41 +0200)
See https://www.woltlab.com/community/thread/295020-text-hinzuf%C3%BCgen-cache-wird-nicht-geleert/

wcfsetup/install/files/lib/acp/form/LanguageItemAddForm.class.php

index 1f58dc9fa92c729a34c265cf981a76a19d7cf910..54eeacb0e97076c7e94b929bc70c9c75caab8f32 100644 (file)
@@ -227,4 +227,13 @@ class LanguageItemAddForm extends AbstractFormBuilderForm
                 ->values(['selection'])
         );
     }
+
+    /**
+     * @inheritDoc
+     */
+    public function saved() {
+        parent::saved();
+
+        LanguageFactory::getInstance()->deleteLanguageCache();
+    }
 }