From 71dffd9b7016d3628256ce42db29d1221052a4f4 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Mon, 24 Jun 2024 10:14:40 +0200 Subject: [PATCH] perf(session): remove useless session open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `UseSession` isn’t used in theses controllers. Not using it should avoid a few session locks. Signed-off-by: Benjamin Gaussorgues --- apps/files/lib/Controller/ViewController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index ed01efe0ebbda..0f24db6b0776c 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -123,7 +123,6 @@ public function showFile(?string $fileid = null): Response { /** * @NoCSRFRequired * @NoAdminRequired - * @UseSession * * @param string $dir * @param string $view @@ -138,7 +137,6 @@ public function indexView($dir = '', $view = '', $fileid = null, $fileNotFound = /** * @NoCSRFRequired * @NoAdminRequired - * @UseSession * * @param string $dir * @param string $view @@ -153,7 +151,6 @@ public function indexViewFileid($dir = '', $view = '', $fileid = null, $fileNotF /** * @NoCSRFRequired * @NoAdminRequired - * @UseSession * * @param string $dir * @param string $view