Cakephp 3.0 无法读取/覆盖Shell中的缓存配置

Cakephp 3.0 无法读取/覆盖Shell中的缓存配置,cakephp-3.0,Cakephp 3.0,在CakePHP3.3中,我有以下Shell class SampleShell extends Shell { public function main() { pr(Configure::read('App')); pr(Configure::read('Cache')); } } 上述代码的输出为: Array ( [namespace] => App [encoding] => UTF-8 [def

在CakePHP3.3中,我有以下Shell

class SampleShell extends Shell
{
    public function main()
    {
       pr(Configure::read('App'));
       pr(Configure::read('Cache'));
    }
}
上述代码的输出为:

Array
(
    [namespace] => App
    [encoding] => UTF-8
    [defaultLocale] => en
    [defaultTimeZone] => UTC
    [base] => 
    [dir] => src

    //... and it goes on...

    [emailDgiest] => Array
        (
            [timer] => 180
        )

)




因此,它返回应用程序配置,但不返回缓存配置。我做错了什么?

我认为缓存配置在引导过程中被“消耗”,这意味着它不再可读取。常见的做法可能包括密码,这样恶意代码就更难获取密码了?或者只是为了防止同一件事被设置两次并引起问题?