public static function index_show() { $num_showed = 5; //Number of Technologies Showed try { $key = 'technologies_index'; $data = false; //Cache::get($key); if (!$data) { $data = Technology::where('status', '=', 'Y')->take($num_showed)->orderBy('sort')->get(); Cache::put($key, $data, 15); } return $data; } catch (Exception $e) { } }