Skip to content

Commit

Permalink
Correct traffic lights on home page.
Browse files Browse the repository at this point in the history
There is no core.php anymore.  Also the text mentions 'core' caching
so use a cache config that CakePHP considers 'core'.
  • Loading branch information
markstory committed Oct 7, 2012
1 parent f747fd3 commit eca1e0c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
19 changes: 10 additions & 9 deletions App/View/Pages/home.ctp
Expand Up @@ -15,12 +15,13 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
use Cake\Core\Configure,
Cake\Utility\Debugger,
Cake\Cache\Cache,
Cake\Model\ConnectionManager,
Cake\Utility\Validation,
Cake\Error;
use Cake\Core\Configure;
use Cake\Utility\Debugger;
use Cake\Cache\Cache;
use Cake\Model\ConnectionManager;
use Cake\Utility\Validation;
use Cake\Error;

if (Configure::read('debug') == 0):
throw new Error\NotFoundException();
endif;
Expand Down Expand Up @@ -81,14 +82,14 @@ endif;
</p>
<p>
<?php
$settings = Cache::settings();
$settings = Cache::settings('_cake_model_');
if (!empty($settings)):
echo '<span class="notice success">';
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/cache.php ', '<em>'. $settings['engine'] . 'Engine</em>');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php');
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/cache.php');
echo '</span>';
endif;
?>
Expand Down
18 changes: 9 additions & 9 deletions lib/Cake/Console/Templates/skel/View/Pages/home.ctp
Expand Up @@ -16,12 +16,12 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

use Cake\Core\Configure,
Cake\Cache\Cache,
Cake\Model\ConnectionManager,
Cake\Error\NotFoundException,
Cake\Utility\Debugger,
Cake\Utility\Validation;
use Cake\Core\Configure;
use Cake\Cache\Cache;
use Cake\Model\ConnectionManager;
use Cake\Error\NotFoundException;
use Cake\Utility\Debugger;
use Cake\Utility\Validation;

if (Configure::read('debug') == 0):
throw new NotFoundException();
Expand Down Expand Up @@ -83,14 +83,14 @@ endif;
</p>
<p>
<?php
$settings = Cache::settings();
$settings = Cache::settings('_cake_model_');
if (!empty($settings)):
echo '<span class="notice success">';
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/cache.php ', '<em>'. $settings['engine'] . 'Engine</em>');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php');
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/cache.php');
echo '</span>';
endif;
?>
Expand Down

0 comments on commit eca1e0c

Please sign in to comment.