Cache the version data for 24 hrs

This commit is contained in:
Deon George 2023-03-03 13:57:09 +11:00
parent c8398cb0cb
commit 042889bcd5

View File

@ -12,7 +12,7 @@ use App\Models\SiteVersion;
class VersionController extends Controller 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_PROJECT = 2; // Gitlab project number
const GL_URL = 'https://dev.dege.au/api/v4'; // Gitlab URL const GL_URL = 'https://dev.dege.au/api/v4'; // Gitlab URL