set caching to null for finance helper

This commit is contained in:
2019-12-12 01:04:54 -06:00
parent 8055e5ee60
commit 42c70759d0

View File

@@ -71,6 +71,10 @@ class FinanceHelper {
//Set the version
$esi->setVersion('v4');
//Set caching to null
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
//Set our current page to 1 which is the one we are starting on.
$currentPage = 1;
//Set our default total pages to 1 in case our try section fails out.
@@ -179,6 +183,10 @@ class FinanceHelper {
$esi = $esiHelper->SetupEsiAuthentication($token);
$esi->setVersion('v4');
//Set caching to null
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
//Call the page of the wallet journal
try {
$journals = $esi->page($page)
@@ -236,6 +244,10 @@ class FinanceHelper {
$esi = $esiHelper->SetupEsiAuthentication($token);
$esi->setVersion('v4');
//Set caching to null
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
//Call the first page of the wallet journal, as we are always going to get at least one page.
//If we have more pages, then we will continue through the while loop.
try {