Better cache control for some charts.

This commit is contained in:
James Cole 2015-12-24 10:14:01 +01:00
parent 8cdcba3231
commit 55333156ac
2 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,8 @@ class BudgetController extends Controller
$cache = new CacheProperties();
$cache->addProperty($start);
$cache->addProperty($end);
$cache->addProperty($report_type);
$cache->addProperty($accounts);
$cache->addProperty('budget');
$cache->addProperty('year');
if ($cache->has()) {

View File

@ -303,7 +303,9 @@ class CategoryController extends Controller
$cache = new CacheProperties; // chart properties for cache:
$cache->addProperty($start);
$cache->addProperty($report_type);
$cache->addProperty($end);
$cache->addProperty($accounts);
$cache->addProperty('category');
$cache->addProperty('spent-in-year');
if ($cache->has()) {
@ -361,6 +363,8 @@ class CategoryController extends Controller
$cache = new CacheProperties; // chart properties for cache:
$cache->addProperty($start);
$cache->addProperty($end);
$cache->addProperty($report_type);
$cache->addProperty($accounts);
$cache->addProperty('category');
$cache->addProperty('earned-in-year');
if ($cache->has()) {