Skip to content

Firefly III: a personal finances manager

Remove cache.

James Colec125984d550e
diff --git a/app/Support/Steam.php b/app/Support/Steam.php
index a74f16a2b9..d567323b79 100644
--- a/app/Support/Steam.php
+++ b/app/Support/Steam.php
@@ -52,14 +52,6 @@ class Steam
*/
public function balanceIgnoreVirtual(Account $account, Carbon $date): string
{
- // abuse chart properties:
- $cache = new CacheProperties;
- $cache->addProperty($account->id);
- $cache->addProperty('balance-no-virtual');
- $cache->addProperty($date);
- if ($cache->has()) {
- return $cache->get();
- }
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);
$repository->setUser($account->user);
@@ -81,11 +73,7 @@ class Steam
->get(['transactions.foreign_amount'])->toArray();
$foreignBalance = $this->sumTransactions($transactions, 'foreign_amount');
- $balance = bcadd($nativeBalance, $foreignBalance);
-
- $cache->store($balance);
-
- return $balance;
+ return bcadd($nativeBalance, $foreignBalance);
}
/**