Absrtact: If you are ready to do a website, your layout, columns are considered well, then you should take into account the performance of the site, this is not only to give users a good sense of experience, within the scope of the SEO, is an essential part. Of course, the market has good performance
If you are ready to do a website, your layout, columns are considered well, then you should take into account the performance of the site, this is not only to give users a good sense of experience, within the scope of the SEO, is an essential part. Of course, the market has a good performance of the source code is very many, such as Dedecms, the Empire CMS, WordPress and so on. Today, the full-time talk about the optimization and operation of WordPress and other related issues.
WordPress's good is a visual, it gives users an excellent user experience, and to optimize staff to ensure that the site's performance and site optimization can be extended function. Let's look at how to optimize the WordPress site, so that the site can improve performance.
MySQL
Query caching is one of the best proof that MySQL is an extensible relational data store, and there is no reason why WordPress cannot continue to work in the next few years.
You will want to make sure that you enable query caching and execution for your site. This will ensure that MySQL is doing as little work as possible, and more important things are freeing up resources than redundant queries.
You also need to make sure that you use tools like Mysqltuner or similar to ensure that your table performance (buffering, etc.) is optimal. Switching engine InnoDB, now has support for Full-text search, recommended for high traffic sites. You won't compromise the local WordPress search quality. I recommend Percona distribution, especially if MySQL features such as fragmentation, read copy, etc., allowing its size to grow as demand grows.
MySQL data store is not a bottleneck and needs to analyze your theme and plug-in to generate query optimization (reduce response time), reduce its number by refactoring code or different caching techniques.
Keep in mind that by default, using WordPress's transient problem cache is like a time-consuming API request (API requests become expensive because they block execution while waiting for the processing response to move from a third party) and place it in the database (Wp_options table). This may not be a bad thing if this data is not serialized and stored in the same table in various other settings in WordPress.
PHP
PHP is slow. This is not the fault of WordPress, nor anyone's fault, technology continues to develop. What are we going to do? Tracking optimization with Newrelic can get an experience:
• Larger memory usage, greater execution time.
• Use PHP's automatic loading to reduce memory usage.
Use memory and avoid loops as much as possible to reduce execution time and memory usage.
Avoid opening more files than necessary, disk and memory usage to reduce calls.
Use needs instead of include_once and require_once.
OpCode caching
APC is a free, open and powerful framework for caching and optimizing PHP intermediate code. This means that when added to your Web server, you can achieve significant speed improvements (especially with good code). APC keeps an explanation (executable) version of the code in memory, so its request has not been redefined.
APC also provides object storage so that stored objects created in memory next door scripts need them. The only downside to this level of caching is that it's where you have your own application server. This means rebuilding the object cache on each server (wasting CPU time), and more importantly, removing objects that are tricky.
After database and schema optimization, you can fine-tune your WordPress installation.
Here are some tasks you can do to ensure you run at peak performance:
Plug-in
This may be obvious, but it is something that is often overlooked. Make sure your WordPress plugin is up to date. Developers are always looking for ways to improve their plug-ins, one of them with each version of the code to improve performance. This is a very simple way to make sure your plugin always runs the latest version of.
Unused plug-ins should be disabled, letting them not use valuable resources and loading unnecessary code. This not only saves space. On the server, these unused plug-ins will make your site slow, need to update to the latest version, download patches or no longer support plug-in code to protect the vulnerability is not exploited.
Using the wordpress cache
The most famous WordPress cache tool is W3 's total cache, but there are other. These cache plug-ins speed up your Web site, allowing more users to regain access to your site to protect visitors ' interests.
Browser caching
Browser caching can help reduce the number of requests per page for server load limits. For example, browsers that set the correct file headers unchanged (static files, such as pictures, Css,java, and so on) then cache the files on the user's computer. This technique allows browsers to check to see if the file has changed, rather than simply asking them. As a result, your Web server can have more than 304 responses, rather than 200 responses that require files to be sent.
Take a look at HTTP cache control and expires headers, as well as entity tags for more information.
CDN
Using a CDN, you can store images and text that allow visitors to save content from the page on a third-party clustered server to speed up download time.
Gadgets
All suspected parts (or sidebar content) will force the user to take turns querying the DNS server. For example, the use of Third-party tools will be linked to a variety of web sites, which may delay loading until the information passed to the user, which obviously let your information in the network a few hands, so that users directly feel the speed of your site really slow.
Also, if your theme is to use custom parts to draw the most recent comment articles. If this is not handled correctly, it will query the database, and each additional query will greatly increase the burden on the server.
If you are using a lot of widgets, it is a good idea to use WP's widget cache plugin (in addition to the standard cache) to reduce its output processing time.
By making as many of these changes as possible and fine-tuning the things you can greatly increase your WordPress load time, your visitors will have a better experience on the site.