Changed AddressPoll unique ID to be system_id, setup for memcached for all micrsoservices

This commit is contained in:
Deon George 2023-11-27 16:00:02 +11:00
parent 27a3e3e24e
commit 9cf0f1e2f4
3 changed files with 3 additions and 7 deletions

View File

@ -20,6 +20,7 @@ DB_PASSWORD=
#DB_SSLKEY=/var/www/html/config/ssl/client.key
BROADCAST_DRIVER=log
MEMCACHED_HOST=memcached
CACHE_DRIVER=memcached
QUEUE_CONNECTION=database
SESSION_DRIVER=file

View File

@ -73,11 +73,6 @@ 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
*/
@ -163,6 +158,6 @@ class AddressPoll implements ShouldQueue, ShouldBeUnique
public function uniqueId(): string
{
return $this->ao->id;
return $this->ao->system_id;
}
}

View File

@ -13,7 +13,7 @@ class MailSend #implements ShouldQueue
{
use Dispatchable;
private const LOGKEY = 'JCM';
private const LOGKEY = 'JMS';
/**
* @param bool $crash Send crash mail only