Many new webmasters who use WordPress to build websites find it very slow, especially after installing various plugins, the website’s opening speed is almost like closing the browser. Why are some old webmasters’ websites so fast that they can’t even feel the loading time of the webpage? After reading this article, you can also do it – open a webpage in seconds and make your website fly fast. Let’s take a look at the screenshot of the opening speed of CodeDog Blog. The opening speed may vary depending on different places and network operators.

Many new webmasters who use WordPress to build websites find it very slow, especially after installing various plugins, the website’s opening speed is almost like closing the browser. Why are some old webmasters’ websites so fast that they can’t even feel the loading time of the webpage? After reading this article, you can also do it – open a webpage in seconds and make your website fly fast. Let’s take a look at the screenshot of the opening speed of WP enthusiast blogs. The opening speed may vary depending on different places and network operators.

For more advanced optimization, please refer to the tutorial: WordPress Cache Acceleration Optimization Advanced Learning Goal 0 SQL Query

 

WordPress Optimization Acceleration Tutorial

The server processing time was only 0.297 seconds. Let’s take a screenshot of the browser access process.

 

WordPress Optimization Acceleration Tutorial

Firstly, we should understand what happens when a user visits a webpage. For example, visiting the homepage of WP enthusiast blogs now. Firstly, the user enters the website address in the browser, presses enter to start browsing, and the browser begins to query domain name resolution to find the server’s real IP address, and then begins to submit access requests to the server. Then the server responds with the operation, and the dynamic program starts generating webpage code. The database queries the required data, and finally integrates it into a complete webpage, which is then transmitted to the user’s browser through the network. The user’s browser reloads the webpage data and displays it to the user.

Once we understand the above process, we should identify areas where we can improve speed and shorten the entire process time. Follow me step by step to improve your website access speed and achieve instant access.

Open GZIP compression webpage

The role of GZIP is well known, and many websites use it. It can compress the volume of our webpage content before delivering it to users. For example, if GZIP compression is not enabled to improve webpage speed, the homepage of WP enthusiast blog is about 24.5kb in size, and the webpage size after compression is only about 8KB. The size of the webpage has been reduced by three times, and correspondingly, the transmission speed will be three times faster than before. The three times mentioned here only refers to the time required for transmission, and it does not mean that compressing web pages with GZIP can make your website open three times faster. The specific GZIP acceleration tutorial will not be discussed here. For details, please refer to: Enabling GZIP Web Compression

Using CDN node acceleration

As a grassroots webmaster, the bandwidth of the server is generally 1M, and it is okay to transfer some web files. However, if you transfer images, the speed is very slow. Using CDN to cache image JS and other resources to various CDN nodes allows users to access resources nearby. Moreover, the bandwidth of CDN nodes is far more than 1M, and transferring large files such as images is very fast, which can effectively reduce access time and improve user experience. Good ones include Qiniu, Youpai Cloud, Baidu Cloud Acceleration, etc. Our website uses Alibaba Cloud CDN acceleration.

Using Memcache memory level cache to improve response processing speed

To use memcache caching, PHP support is required. If not, modules need to be installed. The method to check if the modules have been installed is as follows:

Create a PHP file in the root directory of the website, and write the following code inside:

<?php  phpinfo(); ?>

Accessing this file in the browser will return all current PHP information, search for the memcache keyword, if it exists, it is already installed, if not, it needs to be installed to use.

Click here to view the installation tutorial for memcached caching system and WordPress optimization tutorial!

 

CentOS installation of Memcached object caching system

CentOS installation and configuration of PHP Memcache extension

Memcached boot up script

The specific method is too long to write down, another article will be written another day to introduce it. Here is a compromise solution: using the WP Super Cache caching plugin to statically cache web pages to local disks, in order to improve access speed, which can be increased by several times and barely enough.

Use MySQL Query Cache to cache the database

Query cache can store the same query, so MySQL will not perform the same operation on the second query, but directly return the result to the user. Fundamentally, it reduces the number of database queries, thereby saving response time and improving user experience. For specific instructions on how to enable MySQL Query Cache, please refer to this article: Enabling MySQL Query Cache Cache

related issues

Some friends may have noticed that although the website opens several times faster than before, the plugin prompts that the memcache memory cache seems to be not working. The specific problem is that my memcache service did not start, and this issue will be resolved next time. Even without starting the memcache cache, our webpage still opens several times faster than before.

Start memcached to statically store the website in memory, with faster response speed! Please refer to the memcached section above for specific tutorials!

Disclaimer: All articles on this website, unless otherwise specified or marked, are original and published on this website. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this website to any website, book, or other media platform without the consent of this website. If the content on this website violates the legitimate rights and interests of the original author, please contact us for handling.