Home > Backend Development > PHP Tutorial > wordpress为什么一次性全部加载wp-include的文件,而不使用autoload

wordpress为什么一次性全部加载wp-include的文件,而不使用autoload

WBOY
Release: 2016-06-06 20:51:30
Original
1068 people have browsed it

初学PHP,看wordpress源码时发现,WP环境建立文件wp-settings.php中,几乎把所有的Wordpress 包含文件包含进去了,为什么不使用autoload,难道包含文件对性能没有影响?

回复内容:

初学PHP,看wordpress源码时发现,WP环境建立文件wp-settings.php中,几乎把所有的Wordpress 包含文件包含进去了,为什么不使用autoload,难道包含文件对性能没有影响?

使用autoload会产生二次编译的性能问题,在这篇文章中已经被讨论过:
http://mdawaffe.wordpress.com/2009/03...

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template