优化Wordpress-wp终极优化手册(Optimize the Wordpress-wp ultimate optimization manual).doc

优化Wordpress-wp终极优化手册(Optimize the Wordpress-wp ultimate optimization manual).doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档