mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed problem updating cache when upgrading
This commit is contained in:
parent
bc0ab97279
commit
9bd6d1afe6
@ -154,13 +154,14 @@ class StartupCheck
|
||||
}
|
||||
foreach ($cachedTables as $name => $class) {
|
||||
if (Input::has('clear_cache') || !Cache::has($name)) {
|
||||
if ( ! class_exists($class)) {
|
||||
continue;
|
||||
}
|
||||
if ($name == 'paymentTerms') {
|
||||
$orderBy = 'num_days';
|
||||
}
|
||||
else if ($name == 'fonts') {
|
||||
} elseif ($name == 'fonts') {
|
||||
$orderBy = 'sort_order';
|
||||
} elseif (in_array($name, ['currencies', 'industries', 'languages', 'countries'])) {
|
||||
|
||||
$orderBy = 'name';
|
||||
} else {
|
||||
$orderBy = 'id';
|
||||
|
@ -437,7 +437,7 @@ if (!defined('CONTACT_EMAIL')) {
|
||||
define('NINJA_GATEWAY_CONFIG', 'NINJA_GATEWAY_CONFIG');
|
||||
define('NINJA_WEB_URL', 'https://www.invoiceninja.com');
|
||||
define('NINJA_APP_URL', 'https://app.invoiceninja.com');
|
||||
define('NINJA_VERSION', '2.4.9');
|
||||
define('NINJA_VERSION', '2.4.9.1');
|
||||
define('NINJA_DATE', '2000-01-01');
|
||||
|
||||
define('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja');
|
||||
|
Loading…
x
Reference in New Issue
Block a user