From 0b623642f7d9b2ae100b08edb69f7a4e8496c34c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 27 Sep 2023 16:03:18 +0200 Subject: [PATCH] Reset OPcache after updating the license data --- .../files/lib/system/package/license/LicenseApi.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/license/LicenseApi.class.php b/wcfsetup/install/files/lib/system/package/license/LicenseApi.class.php index 7d6f024d2f..09a0f085b5 100644 --- a/wcfsetup/install/files/lib/system/package/license/LicenseApi.class.php +++ b/wcfsetup/install/files/lib/system/package/license/LicenseApi.class.php @@ -10,6 +10,7 @@ use wcf\data\package\update\server\PackageUpdateServer; use wcf\system\io\HttpFactory; use wcf\system\package\license\exception\MissingCredentials; use wcf\system\package\license\exception\ParsingFailed; +use wcf\system\WCF; /** * Provides access to the license data. @@ -37,6 +38,8 @@ final class LicenseApi \var_export(\serialize($data), true), ) ); + + WCF::resetZendOpcache(self::LICENSE_FILE); } private static function parseLicenseData(string $json): LicenseData -- 2.20.1