Fix some routes for the budget report.

This commit is contained in:
James Cole
2016-12-16 08:07:31 +01:00
parent b021c7690f
commit 4de14eba0c
14 changed files with 414 additions and 139 deletions

View File

@@ -18,6 +18,7 @@ use Cache;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Support\Collection;
use Log;
use Preferences as Prefs;
/**
@@ -75,6 +76,8 @@ class CacheProperties
public function has(): bool
{
if (getenv('APP_ENV') == 'testing') {
Log::debug('APP_ENV is testing, cache disabled.');
return false;
}
$this->md5();
@@ -118,7 +121,8 @@ class CacheProperties
$this->md5 .= json_encode($property);
}
Log::debug(sprintf('Cache string is %s', $this->md5));
$this->md5 = md5($this->md5);
Log::debug(sprintf('Cache MD5 is %s', $this->md5));
}
}