Magento小技巧:禁用Local代码池

这个小技巧可以一次性禁用掉所有的Local代码池中的文件,对Magento开发者比较有用。例如Magento出现一些莫名其妙的问题时,怀疑Local代码池中的文件有问题,可以在 app/etc/local.xml 中设置 disable_local_modules 的值为 true,如下:

[php]

<config>
<global>

<disable_local_modules>true</disable_local_modules>

</global>

</config>
[/php]
禁用掉Local代码池后,理论上对Magento性能上有点好处,因为Magento加载模块的时候,不用去Local代码池中寻找文件了。

标签


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-0404.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900