mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix some routes for the budget report.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user