mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 10:51:12 -06:00
Bug fix where the account's balance would be cached when it shouldn't.
This commit is contained in:
parent
3fabe2e9fb
commit
f9ab49911d
@ -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(
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user