mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 18:50:55 -04:00
Minor fixes
This commit is contained in:
parent
10f7b1a309
commit
34b9877868
@ -58,23 +58,16 @@ class Kernel extends ConsoleKernel
|
|||||||
|
|
||||||
$schedule->job(new RecurringInvoicesCron)->hourly()->withoutOverlapping();
|
$schedule->job(new RecurringInvoicesCron)->hourly()->withoutOverlapping();
|
||||||
|
|
||||||
|
$schedule->job(new SchedulerCheck)->everyFiveMinutes();
|
||||||
|
|
||||||
/* Run hosted specific jobs */
|
/* Run hosted specific jobs */
|
||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
|
|
||||||
$schedule->job(new AdjustEmailQuota())->daily()->withoutOverlapping();
|
$schedule->job(new AdjustEmailQuota)->daily()->withoutOverlapping();
|
||||||
$schedule->job(new SendFailedEmails())->daily()->withoutOverlapping();
|
$schedule->job(new SendFailedEmails)->daily()->withoutOverlapping();
|
||||||
|
|
||||||
}
|
}
|
||||||
/* Run queue's with this*/
|
|
||||||
if (Ninja::isSelfHost()) {
|
|
||||||
|
|
||||||
$schedule->command('queue:work --daemon')->everyMinute()->withoutOverlapping();
|
|
||||||
|
|
||||||
//we need to add this as we are seeing cached queues mess up the system on first load.
|
|
||||||
$schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping();
|
|
||||||
$schedule->job(new SchedulerCheck)->everyFiveMinutes()->withoutOverlapping();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,7 +35,7 @@ class CompanyFactory
|
|||||||
$company->custom_fields = (object) [];
|
$company->custom_fields = (object) [];
|
||||||
$company->subdomain = '';
|
$company->subdomain = '';
|
||||||
$company->enabled_modules = config('ninja.enabled_modules'); //32767;//8191; //4095
|
$company->enabled_modules = config('ninja.enabled_modules'); //32767;//8191; //4095
|
||||||
$company->default_password_timeout = 30;
|
$company->default_password_timeout = 30 * 60000;
|
||||||
|
|
||||||
return $company;
|
return $company;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ class PasswordProtection
|
|||||||
if($timeout == 0)
|
if($timeout == 0)
|
||||||
$timeout = null;
|
$timeout = null;
|
||||||
else
|
else
|
||||||
$timeout = now()->addMinutes($timeout);
|
$timeout = now()->addMinutes($timeout/60000);
|
||||||
|
|
||||||
if (Cache::get(auth()->user()->hashed_id.'_logged_in')) {
|
if (Cache::get(auth()->user()->hashed_id.'_logged_in')) {
|
||||||
|
|
||||||
|
@ -78,9 +78,15 @@ class SystemHealth
|
|||||||
'phantom_enabled' => (bool)config('ninja.phantomjs_pdf_generation'),
|
'phantom_enabled' => (bool)config('ninja.phantomjs_pdf_generation'),
|
||||||
'exec' => (bool)self::checkExecWorks(),
|
'exec' => (bool)self::checkExecWorks(),
|
||||||
'open_basedir' => (bool)self::checkOpenBaseDir(),
|
'open_basedir' => (bool)self::checkOpenBaseDir(),
|
||||||
|
'mail_mailer' => (string)self::checkMailMailer(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function checkMailMailer()
|
||||||
|
{
|
||||||
|
return config('mail.default');
|
||||||
|
}
|
||||||
|
|
||||||
public static function checkOpenBaseDir()
|
public static function checkOpenBaseDir()
|
||||||
{
|
{
|
||||||
if (strlen(ini_get('open_basedir') == 0)) {
|
if (strlen(ini_get('open_basedir') == 0)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user