mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 19:01:39 +00:00
Better cache control for some charts.
This commit is contained in:
@@ -283,6 +283,8 @@ class BudgetController extends Controller
|
|||||||
$cache = new CacheProperties();
|
$cache = new CacheProperties();
|
||||||
$cache->addProperty($start);
|
$cache->addProperty($start);
|
||||||
$cache->addProperty($end);
|
$cache->addProperty($end);
|
||||||
|
$cache->addProperty($report_type);
|
||||||
|
$cache->addProperty($accounts);
|
||||||
$cache->addProperty('budget');
|
$cache->addProperty('budget');
|
||||||
$cache->addProperty('year');
|
$cache->addProperty('year');
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
|
@@ -303,7 +303,9 @@ class CategoryController extends Controller
|
|||||||
|
|
||||||
$cache = new CacheProperties; // chart properties for cache:
|
$cache = new CacheProperties; // chart properties for cache:
|
||||||
$cache->addProperty($start);
|
$cache->addProperty($start);
|
||||||
|
$cache->addProperty($report_type);
|
||||||
$cache->addProperty($end);
|
$cache->addProperty($end);
|
||||||
|
$cache->addProperty($accounts);
|
||||||
$cache->addProperty('category');
|
$cache->addProperty('category');
|
||||||
$cache->addProperty('spent-in-year');
|
$cache->addProperty('spent-in-year');
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
@@ -361,6 +363,8 @@ class CategoryController extends Controller
|
|||||||
$cache = new CacheProperties; // chart properties for cache:
|
$cache = new CacheProperties; // chart properties for cache:
|
||||||
$cache->addProperty($start);
|
$cache->addProperty($start);
|
||||||
$cache->addProperty($end);
|
$cache->addProperty($end);
|
||||||
|
$cache->addProperty($report_type);
|
||||||
|
$cache->addProperty($accounts);
|
||||||
$cache->addProperty('category');
|
$cache->addProperty('category');
|
||||||
$cache->addProperty('earned-in-year');
|
$cache->addProperty('earned-in-year');
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
|
Reference in New Issue
Block a user