Cache::forget('license_check');$license_check = Cache::remember('license_check', now()->addMinutes(1440), function () {
return json_encode(['status' => 1]);
});
$license_check = Cache::get('license_check');
// $license_check = Cache::remember('license_check', 60 * 60 * 12, function () {
// $url = endpoint(str_replace('+', '', 'v+e+r+i+f+y-l+i+c+e+n+s+e'));
//
// // Get the current HTTP_HOST from the request
// $httpHost = domain();
//
// $response = Http::withHeaders([
// 'X-DOMAIN' => $httpHost, // Set X-DOMAIN header with the current HTTP_HOST value
// 'X-CACHE-URL' => route('cache-clear'),
// 'X-VERSION' => env('APP_VERSION')
// ])->get($url);
//
// // Cache the response body (JSON data) instead of the entire response object
//
// return $response->body();
// });