Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Moving cache disabling earlier so it takes
effect.
Refs #2063
  • Loading branch information
markstory committed Oct 5, 2011
1 parent e56a2cd commit 0e47c98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Console/Command/BakeShell.php
Expand Up @@ -51,6 +51,9 @@ class BakeShell extends Shell {
*/
public function startup() {
parent::startup();
Configure::write('debug', 2);
Configure::write('Cache.disable', 1);

$task = Inflector::classify($this->command);
if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig'))) {
if (isset($this->params['connection'])) {
Expand All @@ -65,9 +68,6 @@ public function startup() {
* @return mixed
*/
public function main() {
Configure::write('debug', 2);
Configure::write('Cache.disable', 1);

if (!is_dir($this->DbConfig->path)) {
$path = $this->Project->execute();
if (!empty($path)) {
Expand Down

0 comments on commit 0e47c98

Please sign in to comment.