Eight suggestions to improve the speed of WordPress site

Source: Internet
Author: User
Keywords WordPress these caching can

WordPress is a great open source program, almost I know the webmaster friends, a rough estimate of 80% use WordPress. But it's great. It's not perfect, but in the friends I know, almost all of them complain that WordPress is too bloated and running too inefficient.

So, today this blog and you share 8 tips to improve the operational efficiency of WP, if you use these methods to find it really helpful, please share this blog to more people, okay? Of course, in order to respect the fruits of labor, please specify the source.

1, the use of efficient caching plug-ins

WordPress plug-ins are very useful, I recommend a cache plug-in can improve the page loading time, it is W3 total cache, with this plugin I will no longer recommend you other cache plug-ins, because all the cache plug-ins have the functionality it has, and the installation and use is very convenient.

With this plugin, your page load speeds up because the main elements of the site are already cached.

2. Use Content distribution network (CDN)

Basically all the big websites you like will use CDN. In short, the CDN is to send the files on your site (css\js\ pictures, etc.) to the nearest user in the network area, so that users download nearby, so that can improve the speed of the site. In the domestic chinacache is more famous CDN suppliers, but the price of some expensive, like the major portals, such as Tencent, Sina, NetEase and so on are used ChinaCache. So no matter where you are, accessing these portals will feel fast. Of course, for a small station, this cost may be higher,

So, whether you are in the south, or north, or in North America, access to these portals, feel fast, one of the main reasons is that the CDN has been effective. The general small website can not afford this service, so slow down a little bit, can lease the interconnection of the 6-line room (6-line computer room refers to including netcom, telecommunications, railcom, Mobile, unicom, education network, such as multi-line access to the backbone of the IDC computer room, the total elimination of network bottlenecks, to ensure that the Internet access unimpeded high-speed room. )

Incidentally, there is also a WordPress plugin called FREE-CDN, claiming to be able to achieve similar effects, although I have not done testing ...

3, picture optimization is very important

Yahoo! There is a picture optimization software called smush.it that can minimize lossless compression of pictures, however, unless you are super patient, otherwise a picture of compressed pictures too waste of time, fortunately, there is a very strong WP plug-in called wp-smushit, this goods can be thought of all the pictures on your site do a one-time compression, so there is no reason not to use it.

4, optimize your WP database

You can use wp-optimize this plugin to optimize your WP database (clean spam, repeated revisions of articles, drafts, forms, etc.) to make room for your server to http://www.aliyun.com/zixun/aggregation/ 9301.html "> Improve efficiency"; There are some plug-ins such as Wp-cleaner,db-manger.

5, open the anti-theft chain mechanism

Hotlinking is the bandwidth of the thieves, when other sites directly referencing your site's pictures, this will affect your own server resources to affect the efficiency of the site, your site more famous, there will be more people steal your pictures, the solution is WordPress has ready-made plug-ins hotlink Homeowner. Of course, you can rewrite the htaccess file to achieve the same effect, want to understand the children's shoes can ask their space business how to set.

6. Add Expiration time to file

About this file expiration time, sounds very iffy, actually is through the header message to specify certain type of file in the browser cache time. Some files (such as the background picture and some decorative pictures that are called in the style sheet) actually don't change much over a long period of time. So we may want to set a long cache time for this type of file so that the browser does not need to download the files from the server every time and read it directly from the cache. This will definitely increase the load speed.

Of course, so it's simple, just add the following code to the Web site's. htaccess file.

To explain a little bit, text/css represents the stylesheet file, the plain text class file that filetype represents, and so on. Where A2592000 represents the cache time, in seconds, of this type of file in the browser. 86,400 seconds a day, 2592000 indicates that such files can be cached for 30 days.

If you do not modify the template frequently, the stylesheet and Javasctipt files can basically be cached for a week to one months or so. HTML files do not set too long cache time, because these things are modified a high frequency, one day update is necessary.

7, for your picture add delay loading

Delay loading is when the user stops at the first screen, does not load any image information below the first screen, only when the user scrolling down the mouse, these pictures began to load. This thing can not only enhance the site load speed, but also can save bandwidth. To easily have this feature, please install WP jquery Image Lazy Load plugin.

8, control the number of draft articles saved

Usually a blog post I will save more than 10 drafts, and WordPress will be unlimited storage of each draft, if my blog has been released, why do I need these stored draft articles? So that's why I use the Revision control plug-in to make sure these drafts are minimized. I usually set up to store only 2-3 drafts to prevent in case, but the amount of storage is definitely not too high, otherwise your WordPress backend will only be filled with these meaningless content and reduce the efficiency of the operation.

Well, today's share is here, I hope to help, in fact, these points not only to help WordPress, other open source Web site also works. :-)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.