From 42c70759d0a84efb4445503c1caa97e3f2f91c08 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 12 Dec 2019 01:04:54 -0600 Subject: [PATCH] set caching to null for finance helper --- app/Library/Finances/Helper/FinanceHelper.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Library/Finances/Helper/FinanceHelper.php b/app/Library/Finances/Helper/FinanceHelper.php index f41dae20c..c8befec6d 100644 --- a/app/Library/Finances/Helper/FinanceHelper.php +++ b/app/Library/Finances/Helper/FinanceHelper.php @@ -70,6 +70,10 @@ class FinanceHelper { $esi = $esiHelper->SetupEsiAuthentication($token); //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; @@ -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 {