diff --git a/extend.php b/extend.php index b96ed2b..d677d9a 100644 --- a/extend.php +++ b/extend.php @@ -28,9 +28,9 @@ }; use ACPL\FlarumCache\Middleware\{ CacheControlMiddleware, + LSTagsMiddlewareAbstract, LoginMiddleware, LogoutMiddleware, - LSTagsMiddlewareAbstract, PurgeCacheMiddleware, VaryCookieMiddleware }; diff --git a/src/Utility/LSCachePurger.php b/src/Utility/LSCachePurger.php index 36057ca..3f8f311 100644 --- a/src/Utility/LSCachePurger.php +++ b/src/Utility/LSCachePurger.php @@ -6,6 +6,7 @@ use ACPL\FlarumCache\Event\LSCachePurging; use Illuminate\Events\Dispatcher; use Symfony\Component\Console\{Input\ArrayInput, Output\NullOutput}; + use const PHP_SAPI; /**