Fix caching determination for traffic import
This commit is contained in:
parent
7d41fb857a
commit
7f1681f0b7
2
app/Classes/External/Supplier.php
vendored
2
app/Classes/External/Supplier.php
vendored
@ -33,7 +33,7 @@ abstract class Supplier
|
|||||||
sleep($x);
|
sleep($x);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Cache::remember('Supplier:'.$this->o->id,86400,function() {
|
$result = Cache::remember('Supplier:'.$this->o->id.$this->o->stats_lastupdate,86400,function() {
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
|
|
||||||
$result = $client->request('POST',null,[
|
$result = $client->request('POST',null,[
|
||||||
|
@ -5,6 +5,8 @@ namespace App\Console;
|
|||||||
use Illuminate\Console\Scheduling\Schedule;
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||||
|
|
||||||
|
use App\Jobs\BroadbandTraffic;
|
||||||
|
|
||||||
class Kernel extends ConsoleKernel
|
class Kernel extends ConsoleKernel
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -24,8 +26,7 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
// $schedule->command('inspire')
|
$schedule->job(new BroadbandTraffic())->dailyAt('10:00');
|
||||||
// ->hourly();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user