Cache the version data for 24 hrs
This commit is contained in:
parent
c8398cb0cb
commit
042889bcd5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user