优化Wordpress-wp终极优化手册(Optimize the Wordpress-wp ultimate optimization manual).doc
文本预览下载声明
优化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
显示全部