body()), now()->addDays(3)); } catch(ConnectionException $connectException) { // Shorter TTL because mojang status server might have recovered Cache::put('mojang_status', base64_encode($unknown_status), now()->addMinutes(60)); Log::alert('Writing unknown Mojang status placeholder to cache'); Log::critical('Could not connect to Mojang servers: Cannot check/refresh status', [ 'message' => $connectException->getMessage() ]); } } View::share('mcstatus', json_decode(base64_decode(Cache::get('mojang_status')), true)); } }