diff --git a/.travis.yml b/.travis.yml index ab20f68bfb..1950888d8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,9 +75,9 @@ before_script: script: #- php ./vendor/codeception/codeception/codecept run --debug acceptance APICest.php - #- php ./vendor/codeception/codeception/codecept run --debug acceptance TaxRatesCest.php + - php ./vendor/codeception/codeception/codecept run --debug acceptance TaxRatesCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance CheckBalanceCest.php - - php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php + #- php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceCest.php diff --git a/app/Http/Middleware/StartupCheck.php b/app/Http/Middleware/StartupCheck.php index 5db83b89b0..9862b2ba3f 100644 --- a/app/Http/Middleware/StartupCheck.php +++ b/app/Http/Middleware/StartupCheck.php @@ -191,6 +191,7 @@ class StartupCheck Session::flash('message', 'Cache cleared'); } foreach ($cachedTables as $name => $class) { + \Log::info("Cache for {$name} is " . (Cache::has($name) ? 'SET' : 'NOT SET')); if (Input::has('clear_cache') || ! Cache::has($name)) { // check that the table exists in case the migration is pending if (! Schema::hasTable((new $class())->getTable())) { @@ -207,6 +208,7 @@ class StartupCheck } $tableData = $class::orderBy($orderBy)->get(); if (count($tableData)) { + \Log::info("Setting cache for {$name}"); Cache::forever($name, $tableData); } }