added no caching to journal
This commit is contained in:
@@ -35,7 +35,8 @@ use App\Library\Lookups\LookupHelper;
|
|||||||
|
|
||||||
//Seat Stuff
|
//Seat Stuff
|
||||||
use Seat\Eseye\Exceptions\RequestFailedException;
|
use Seat\Eseye\Exceptions\RequestFailedException;
|
||||||
|
use Seat\Eseye\Cache\NullCache;
|
||||||
|
use Seat\Eseye\Configuration;
|
||||||
|
|
||||||
class FinanceHelper {
|
class FinanceHelper {
|
||||||
|
|
||||||
@@ -146,6 +147,10 @@ class FinanceHelper {
|
|||||||
//Set the esi version to v4
|
//Set the esi version to v4
|
||||||
$esi->setVersion('v4');
|
$esi->setVersion('v4');
|
||||||
|
|
||||||
|
//Set caching to null
|
||||||
|
$configuration = Configuration::getInstance();
|
||||||
|
$configuration->cache = NullCache::class;
|
||||||
|
|
||||||
//Call the first page so we can get the header data for the number of pages
|
//Call the first page so we can get the header data for the number of pages
|
||||||
try {
|
try {
|
||||||
$journals = $esi->invoke('get', '/corporations/{corporation_id}/wallets/{division}/journal/', [
|
$journals = $esi->invoke('get', '/corporations/{corporation_id}/wallets/{division}/journal/', [
|
||||||
@@ -153,7 +158,7 @@ class FinanceHelper {
|
|||||||
'division' => $division,
|
'division' => $division,
|
||||||
]);
|
]);
|
||||||
} catch(RequestFailedException $e) {
|
} catch(RequestFailedException $e) {
|
||||||
//Log::warning($e->getEsiResponse());
|
Log::warning($e->getEsiResponse());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user