Reset OPcache after updating the license data
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 14:03:18 +0000 (16:03 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 14:03:18 +0000 (16:03 +0200)
wcfsetup/install/files/lib/system/package/license/LicenseApi.class.php

index 7d6f024d2feb84c25a6e802d8d366e3320374c71..09a0f085b501b38c340c40ac221c141cb787e230 100644 (file)
@@ -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