Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Try to limit the collection returned to the user.
James Colee2790ca6c11c
diff --git a/app/Http/Controllers/Chart/CategoryController.php b/app/Http/Controllers/Chart/CategoryController.phpindex 52e9d1fa4b..360aeb26d0 100644--- a/app/Http/Controllers/Chart/CategoryController.php+++ b/app/Http/Controllers/Chart/CategoryController.php@@ -71,6 +71,10 @@ class CategoryController extends Controller$entries->push([clone $start, $date, $spent, $earned]);$start = Navigation::addPeriod($start, $range, 0);}+ // limit the set to the last 40:+ $entries = $entries->reverse();+ $entries = $entries->slice(0, 40);+ $entries = $entries->reverse();$data = $this->generator->all($entries);$cache->store($data);