diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Console/Kernel.php | 10 | ||||
| -rw-r--r-- | app/Http/Controllers/IndexController.php | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 8c12616..3bd744e 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -9,6 +9,8 @@ use App\Libraries\AnimeSeason; use App\Libraries\Helper; use App\Libraries\Background; +use App\Anime; + class Kernel extends ConsoleKernel { /** @@ -65,6 +67,14 @@ class Kernel extends ConsoleKernel $background->saveEnhancementForAll(); })->weeklyOn(1, '15:30'); #})->everyMinute(); + +/* + $schedule->call( function(){ + $background = new Background(); + $anime = Anime::where('mal_id', 40591)->get()->first(); + $background->saveAiring( $anime ); + })->everyMinute(); +*/ } /** diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index 3704afe..d9e792a 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -25,7 +25,7 @@ class IndexController extends Controller { #public function iCal(Request $request) { public function iCal($username) { - if ( ! Cache::has('schedule_' . $username)) { + if ( ! Cache::has('xschedule_' . $username)) { $helper = new Helper(); $schedule = $helper->getCalendar($username); Cache::put('schedule_' . $username, $schedule, 360); |
