For AddressPoll, force using our file cache - seems sometimes the key doesnt release with memcached
This commit is contained in:
parent
096e37ef35
commit
a991db788e
@ -3,6 +3,7 @@
|
|||||||
namespace App\Jobs;
|
namespace App\Jobs;
|
||||||
|
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Cache\Repository;
|
||||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Foundation\Bus\Dispatchable;
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
@ -10,6 +11,7 @@ use Illuminate\Queue\InteractsWithQueue;
|
|||||||
use Illuminate\Queue\ManuallyFailedException;
|
use Illuminate\Queue\ManuallyFailedException;
|
||||||
use Illuminate\Queue\MaxAttemptsExceededException;
|
use Illuminate\Queue\MaxAttemptsExceededException;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Facades\Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
|
|
||||||
@ -87,6 +89,11 @@ class AddressPoll implements ShouldQueue, ShouldBeUnique
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function uniqueVia(): Repository
|
||||||
|
{
|
||||||
|
return Cache::driver('file');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When calling MessageProcess - we assume that the packet is from a valid source
|
* When calling MessageProcess - we assume that the packet is from a valid source
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user