- 1、本文档共12页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
优化Wordpress-wp终极优化手册(Optimize the Wordpress-wp ultimate optimization manual)
优化Wordpress-wp终极优化手册(Optimize the Wordpress-wp ultimate optimization manual)
Wordpress is very powerful, so many plug-ins and fancy interfaces make it slow down. Therefore, how to optimize to speed up visitors browsing speed has become a problem for wper. I will sum up a lot of master methods, summed up the text into this, I hope we can help. (it is recommended to update the WP system to more than 2.1.2)
Optimize all the pictures (images):
The picture is actually key read speed, the larger picture is likely to reach 100K; therefore, before upload your own pictures, make sure you use the Photoshop to save (save for Web) function, image optimization. (for example, save to GIF, PNG format, etc.)
Close all unnecessary plug-ins (plugins):
Before you install the plug-in, first ask yourself, do you have to use this plug-in?. Dont install super plug-ins such as UTW and reduce the number of plug-ins as much as possible.
Open the cache (Cache) feature that comes with WP:
Open the wp-config.php file under the WP root directory and add define (ENABLE_CACHE, true) before the last line;
Change the cache directory property in WP-content directory to 777 to ensure that the system can write to cache.
If your blog day visits are more than 200, it is recommended to install the WP-Cache plug-in, otherwise it is not recommended.
Let WP-Cache also use Gzip: if you install WP-Cache, WP-Cache must know the requirements must be shut down WP built-in GZip function, but we can add code in wp-cache-phase1.php to achieve Gzip compression function.
Open wp-cache-phase1.php, probably in the 35 line or so, find the following code:
Foreach ($meta-headers, as, $header) {
Header ($header);
Add the following code before this code:
If (extension_loaded (zlib)) ob_start (ob_gzhandler);
Merge JS and CSS files: many plug-ins have their own JS files. When the system reads these files, a large amount of HTTP requests is generated, resulting in a delay of about 0.2 sec / s.. Therefore, merging all the JS and
您可能关注的文档
- 中基层管理人员核心管理技能提升训练(Training of core management skills in middle and primary level managers).doc
- 中外资商业银行个人理财业务竞争力比较分析(Comparative analysis of the competitiveness of personal financial services between Chinese and foreign commercial banks).doc
- 中央气象网城市代码(Central Weather Network City Code).doc
- 中央电视台知名主持人新诗会读错字有伤大雅(Famous CCTV host will read typo indelicate Poetry).doc
- 中央空调系统001(Central air conditioning system 001).doc
- 中央集权目录(Centralized directory).doc
- 中学宿舍管理中存在的问题及对策(Problems and Countermeasures in middle school dormitory management).doc
- 中央级新购大型科学仪器设备联合评议工作(Joint evaluation of newly purchased large scientific instruments and equipment at the central level).doc
- 中国近现代史纲要第1章物质世界及其发展规律重点(The outline of Chinese modern history, the first chapter focuses on the material world and its development law).doc
- 中学教育教学知识与能力第3章习题(Middle school education, teaching knowledge and ability, the third chapter exercises).doc
文档评论(0)