mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
parent
68c4b66550
commit
18acc65fe1
2 changed files with 13 additions and 0 deletions
|
@ -69,6 +69,8 @@ class BakeShell extends Shell {
|
|||
* @access public
|
||||
*/
|
||||
function main() {
|
||||
Configure::write('Cache.disable', 1);
|
||||
|
||||
if (!is_dir($this->DbConfig->path)) {
|
||||
if ($this->Project->execute()) {
|
||||
$this->DbConfig->path = $this->params['working'] . DS . 'config' . DS;
|
||||
|
|
|
@ -42,6 +42,17 @@ class BakeTask extends Shell {
|
|||
*/
|
||||
var $interactive = false;
|
||||
|
||||
/**
|
||||
* Disable caching for baking.
|
||||
* This forces the most current database schema to be used.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function startup() {
|
||||
Configure::write('Cache.disable', 1);
|
||||
parent::startup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the path for output. Checks the plugin property
|
||||
* and returns the correct path.
|
||||
|
|
Loading…
Reference in a new issue