Objective
The performance optimization of the website is very important, directly determines the user experience, and the load capacity of the website.
WordPress is a very popular blog/cms open source software. Millions of of the world's websites are built using WordPress.
So, how to make WordPress performance, efficiency to achieve the best, in the case of reducing server load, improve the site's access speed, or improve the performance of the site, improve the user's access experience?
The administrator of the sharp shell mainframe to help you solve these problems. Writing level and knowledge level is limited, if there is not fluent, or the wrong place, please understand.
The bottleneck of website speed is mainly:
-Broadband bottlenecks. The network between the user's network and server is unobstructed, and the bandwidth of the server itself is ample.
-Database bottlenecks. The speed at which the website program requests data determines the time the page is generated for the dynamic website.
-Disk IO bottleneck. Resource files, program parsing, database data reading, and persistence are all related to disk IO.
-Bottlenecks in the program itself. If the program is not well written, in addition to optimizing the code, God can not help you ah.
Broadband bottlenecks
Broadband is very important, perhaps your broadband is abundant, the server's broadband is also abundant, but the physical location is too far (domestic to the West coast of the United States ~ ~ Think you are drunk!) advertising, sharp shell host has Hong Kong and Japan, are the most recent exemption from the mainland of the record area. In fact, broadband bottlenecks are very weak, in most cases, the server's broadband is very abundant.
So how is the data transmitted in the shortest possible time?!
Scheme:
-Turn on gzip compression on the server. Compress transfer data to reduce transmission time.
-Place resource files in the country.
-WordPress or a self-developed program can use the image function of seven cow cloud storage.
-All you need to do is create a seven cow mirror space and modify the URL address provided by the resource file for seven cow space.
-You can also use my love boiled fish directly the author developed the seven-ox static plugin. In this way, the server only needs to transfer the HTML of the Web page, other Css,js and other files to seven cattle, can be very effective to improve the overall speed of the site.
-The official website of the sharp shell host is doing so!
Database bottlenecks
Our website data is persisted in the MySQL database (occupies disk). The essence of a dynamic website is to read a database, process logic, and live HTML to transmit to the browser. For example, our WordPress, is a dynamic PHP program.
Every time we visit WordPress blog, WordPress will read from MySQL data articles, tags and so on, and then survive HTML, transmitted to the browser, browser rendering to the user.
Therefore, every visit, will query the MySQL database, the data read out. This process is also one of the speed bottlenecks of the website!
Reduce the database query, you can significantly improve the speed of the site.
So, if we reduce or do not query the database, the site will be faster. That's right! This is static.
Fortunately, WordPress has static plug-ins, such as Wp-super-cache plug-ins. WordPress page can be cached, reduce the query database, and then directly from the disk read the cached page, sent to the browser, do not make or reduce the database query operations.
Disk IO Bottlenecks
Faster disk speeds will also improve website speed!
For example, our website's pictures, CSS, js are stored on the server's disk. Then from the server software (such as Nginx) read these files (for the disk is read files), and then sent to the user's browser;
Or, we write and read MySQL data, and we read and write data from disk.
These operations, of course, are faster disk speeds, which means faster site loading speed!
So the use of SSD hard disk, the speed of the website can also be significantly improved (sharp Shell host Server disk are SSD hard disk)!
Program bottlenecks
Program bottleneck is mainly user-written code, database additions and deletions to check the statement, database table optimization, can improve the performance of the program.
This requires a certain amount of experience, development skills and skills.
Conclusion
In fact, these are some of the general optimization and considerations and recommendations. For the novice users, there is some help.
Users can extrapolate. You can even learn more about Nginx, HTTP protocol-level caching, Redis, and other memory-level caches.
Finally, the sharp shell host welcomes you. Virtual host with CDN, perfect compatibility with wordpress! recently we will launch the application engine based on Docker container technology, then welcome to experience!
Loading performance optimization for WordPress and traditional websites