Reset the page cache when modifying the app landing pages
authorAlexander Ebert <ebert@woltlab.com>
Tue, 24 Aug 2021 15:47:31 +0000 (17:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 24 Aug 2021 15:47:31 +0000 (17:47 +0200)
Fixes #4475

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

index 01180e0a849f63d683331a25fa64ca2f1f95efc7..a3ca319be2d031e2a79e5a8ecd63f7a64d958d6f 100644 (file)
@@ -9,6 +9,7 @@ use wcf\data\page\PageNodeTree;
 use wcf\form\AbstractForm;
 use wcf\system\application\ApplicationHandler;
 use wcf\system\cache\builder\ApplicationCacheBuilder;
+use wcf\system\cache\builder\PageCacheBuilder;
 use wcf\system\cache\builder\RoutingCacheBuilder;
 use wcf\system\exception\PermissionDeniedException;
 use wcf\system\exception\UserInputException;
@@ -205,6 +206,7 @@ final class ApplicationManagementForm extends AbstractForm
 
         // Reset caches to reflect the new landing pages.
         ApplicationCacheBuilder::getInstance()->reset();
+        PageCacheBuilder::getInstance()->reset();
         RoutingCacheBuilder::getInstance()->reset();
 
         // Reload the applications to update the selected landing page id.