1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #6970 from turbo124/v5-develop

Cache contacts
This commit is contained in:
David Bomba 2021-11-14 21:33:05 +11:00 committed by GitHub
commit 8894b77195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
5.3.30
5.3.31

View File

@ -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;

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.3.30',
'app_tag' => '5.3.30',
'app_version' => '5.3.31',
'app_tag' => '5.3.31',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''),