From 042889bcd5c20a425d343584945072f28fbed32c Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 3 Mar 2023 13:57:09 +1100 Subject: [PATCH] Cache the version data for 24 hrs --- app/Http/Controllers/VersionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/VersionController.php b/app/Http/Controllers/VersionController.php index f3ff019..b7445de 100644 --- a/app/Http/Controllers/VersionController.php +++ b/app/Http/Controllers/VersionController.php @@ -12,7 +12,7 @@ use App\Models\SiteVersion; class VersionController extends Controller { - const CACHE_TIME = 10; // Time to cache version + const CACHE_TIME = 86400; // Time to cache version const GL_PROJECT = 2; // Gitlab project number const GL_URL = 'https://dev.dege.au/api/v4'; // Gitlab URL