Skip to content

Commit

Permalink
Correct home.ctp to use Cache::engine
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Nov 19, 2013
1 parent 20a4d9a commit ddc23b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cake/Test/TestApp/View/Pages/home.ctp
Expand Up @@ -67,7 +67,8 @@ endif;
</p>
<p>
<?php
$settings = Cache::settings('_cake_model_');
$engine = Cache::engine('_cake_model_');
$settings = $engine ? $engine->config() : false;
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/cache.php', '<em>'. $settings['engine'] . 'Engine</em>');
Expand Down

0 comments on commit ddc23b3

Please sign in to comment.