mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixed problem updating cache when upgrading
This commit is contained in:
parent
9bd6d1afe6
commit
7171e2b5a5
@ -10,6 +10,7 @@ use Redirect;
|
||||
use Cache;
|
||||
use Session;
|
||||
use Event;
|
||||
use Schema;
|
||||
use App\Models\Language;
|
||||
use App\Models\InvoiceDesign;
|
||||
use App\Events\UserSettingsChanged;
|
||||
@ -154,7 +155,8 @@ class StartupCheck
|
||||
}
|
||||
foreach ($cachedTables as $name => $class) {
|
||||
if (Input::has('clear_cache') || !Cache::has($name)) {
|
||||
if ( ! class_exists($class)) {
|
||||
// check that the table exists in case the migration is pending
|
||||
if ( ! Schema::hasTable((new $class)->getTable())) {
|
||||
continue;
|
||||
}
|
||||
if ($name == 'paymentTerms') {
|
||||
|
@ -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.1');
|
||||
define('NINJA_VERSION', '2.4.9.2');
|
||||
define('NINJA_DATE', '2000-01-01');
|
||||
|
||||
define('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja');
|
||||
|
Loading…
Reference in New Issue
Block a user