mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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');
|
||||
|
||||
if(!$languages)
|
||||
$this->buildCache(true);
|
||||
|
||||
return $languages->filter(function ($item) {
|
||||
return $item->id == $this->client->getSetting('language_id');
|
||||
})->first()->locale;
|
||||
|
Loading…
x
Reference in New Issue
Block a user