mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-30 23:20:34 -04:00
Cache contacts
This commit is contained in:
parent
48b5f39b14
commit
d71ea9ee67
@ -217,6 +217,9 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
{
|
{
|
||||||
$languages = Cache::get('languages');
|
$languages = Cache::get('languages');
|
||||||
|
|
||||||
|
if(!$languages)
|
||||||
|
$this->buildCache(true);
|
||||||
|
|
||||||
return $languages->filter(function ($item) {
|
return $languages->filter(function ($item) {
|
||||||
return $item->id == $this->client->getSetting('language_id');
|
return $item->id == $this->client->getSetting('language_id');
|
||||||
})->first()->locale;
|
})->first()->locale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user