mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 10:16:49 +00:00
Make sure charts are cached.
This commit is contained in:
@@ -370,7 +370,7 @@ class CategoryController extends Controller
|
|||||||
$cache->addProperty('category');
|
$cache->addProperty('category');
|
||||||
$cache->addProperty('earned-in-period');
|
$cache->addProperty('earned-in-period');
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
//return Response::json($cache->get()); // @codeCoverageIgnore
|
return Response::json($cache->get()); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
$categories = new Collection;
|
$categories = new Collection;
|
||||||
$sets = new Collection;
|
$sets = new Collection;
|
||||||
@@ -474,7 +474,7 @@ class CategoryController extends Controller
|
|||||||
$cache->addProperty('category');
|
$cache->addProperty('category');
|
||||||
$cache->addProperty('spent-in-period');
|
$cache->addProperty('spent-in-period');
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
//return Response::json($cache->get()); // @codeCoverageIgnore
|
return Response::json($cache->get()); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
$categories = new Collection;
|
$categories = new Collection;
|
||||||
$sets = new Collection;
|
$sets = new Collection;
|
||||||
|
Reference in New Issue
Block a user