From ad6aff6af2e6b745773ec02e93cc450b99048ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 6 Nov 2025 13:24:17 +0100 Subject: [PATCH] remove locale cache --- app/controllers/api/locale.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/api/locale.php b/app/controllers/api/locale.php index 2c8a38de07..69bf766323 100644 --- a/app/controllers/api/locale.php +++ b/app/controllers/api/locale.php @@ -37,7 +37,6 @@ App::get('/v1/locale') $currencies = Config::getParam('locale-currencies'); $output = []; $ip = $request->getIP(); - $time = (60 * 60 * 24 * 45); // 45 days cache $output['ip'] = $ip; @@ -68,10 +67,6 @@ App::get('/v1/locale') $output['currency'] = $currency; } - $response - ->addHeader('Cache-Control', 'public, max-age=' . $time) - ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days - ; $response->dynamic(new Document($output), Response::MODEL_LOCALE); });