Bug fix where the account's balance would be cached when it shouldn't.

This commit is contained in:
James Cole
2014-12-15 18:03:16 +01:00
parent 3fabe2e9fb
commit f9ab49911d
2 changed files with 8 additions and 5 deletions

View File

@@ -29,7 +29,8 @@ class Steam
$key = 'account.' . $account->id . '.balanceOn' . $date->format('dmy');
}
if (\Cache::has($key)) {
return \Cache::get($key);
// TODO find a way to reliably remove cache entries for accounts.
#return \Cache::get($key);
}
$date = is_null($date) ? Carbon::now() : $date;
$balance = floatval(