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(

View File

@ -95,12 +95,14 @@ require $framework . '/Illuminate/Foundation/start.php';
//Event::subscribe('Firefly\Trigger\Budgets\EloquentBudgetTrigger');
//Event::subscribe('Firefly\Trigger\Recurring\EloquentRecurringTrigger');
//Event::subscribe('Firefly\Trigger\Journals\EloquentJournalTrigger');
Event::subscribe('FireflyIII\Event\Piggybank');
Event::subscribe('FireflyIII\Event\Budget');
Event::subscribe('FireflyIII\Event\TransactionJournal');
Event::subscribe('FireflyIII\Event\Transaction');
Event::subscribe('FireflyIII\Event\Account');
Event::subscribe('FireflyIII\Event\Budget');
Event::subscribe('FireflyIII\Event\Event');
Event::subscribe('FireflyIII\Event\Piggybank');
Event::subscribe('FireflyIII\Event\Transaction');
Event::subscribe('FireflyIII\Event\TransactionJournal');
// event that creates a relationship between transaction journals and recurring events when created.
// event that updates the relationship between transaction journals and recurring events when edited.