From 82e0a3b8570c033a9cf526a6610fba1e3306f879 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 24 Aug 2021 17:47:31 +0200 Subject: [PATCH] Reset the page cache when modifying the app landing pages Fixes #4475 --- .../files/lib/acp/form/ApplicationManagementForm.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php b/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php index 01180e0a84..a3ca319be2 100644 --- a/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php @@ -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. -- 2.20.1