WordPress performance optimization: let your WP website fly!

One year ago (2023-11-07) Chief Editor
4 minutes
three hundred and sixty-seven
zero

Recently, many users have found that Cool theme The access speed of our official website and demo website is much faster. Most of the time, we click on it every second. I would like to know how we do it. actually Cool theme It has also experienced a difficult process of slow website speed and insufficient server resources. Later, after multiple in-depth studies and repeated tests, a complete set of WordPress Performance optimization solutions.

Now let's talk about our WordPress Practical experience of performance optimization:

1. Buy website server: as a domestic website, try to choose domestic cloud servers, such as Alibaba Cloud ECS, rather than virtual hosts, or computer rooms in Hong Kong or abroad. Important note: Linux must be selected for the operating system, whether it is an ECS or a virtual host, because the Windows system runs PHP too slowly.

 aliyun-ecs

2. To install the visualization server management panel: Cool theme Having been a website for 10 years, if there is no visual operation panel, you will feel helpless and unable to move. It is recommended to install the pagoda panel, a simple and easy to use visual server operation panel with the first Chinese market share, which can be simply understood as the Chinese cPanel and Plesk. Using the pagoda panel allows us to easily operate our Linux server, install the server environment, manage the website, and so on.

 bt-panel

3. Install the website server environment: use the pagoda panel to install the website running environment with one click. It is recommended to select LNMP, among which PHP is recommended to be more than 7.0, and the higher the better. Go to PHP Settings>Performance Adjustment, and change the concurrency scheme to "100 concurrency" or higher according to your server situation.

 lnmp

4. Install PHP cache and optimization extension: In the PHP setting option on the pagoda panel, install memcached and opcache extensions. WordPress Websites consume more memory and CPU. These two PHP extensions are very important.

5. Installation WordPress Cache and optimization plug-in: enter WordPress Background>Plug ins, search and install the following plug-ins, and refer to our settings:

(1) Autooptimize (optimize website HTML/JS/CSS code to improve website access speed)

 autoptimize-config

(2) WP Super Cache (generate page cache, reduce database queries, and relieve server pressure)

 aliyun-oss wp-super-cache-config

(3) Memcached Is Your Friend. This plug-in can be used in WordPress The end calls the PHP Memcached extension we installed earlier.

(4)、 Cool theme Optimization master (manual download and installation are required, no additional settings are required). This plug-in can be removed WordPress Extra code in the website header.

6. Use a third-party storage service (optional): Storing website images in a third-party storage service, such as Alibaba Cloud OSS, can effectively reduce the number of website users' requests for the server. There is one WordPress The Aliyun OSS plug-in can be installed to WordPress The uploaded pictures are automatically uploaded to AliCloud OSS.

Conclusion: After the above steps, the CPU, memory and load of the server will be greatly reduced, WordPress The access speed of the website will be significantly improved.

Before optimization, even a 4-core 8GB memory server was struggling:

After optimization, even the server with 2-core 4GB memory is very easy:

The website speed is accelerated, the server pressure is reduced, and the user experience is greatly improved. If you need Cool theme To provide your website with the above set of optimization solutions, you can purchase our service package:

This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/268.html
Kuke_WP editor
author

Related recommendations

One year ago (2023-11-11)

How does WordPress set WeChat login of social login interface configuration

WeChat login is a built-in function of our Cool Theme Themer framework. Through this function, users can directly log in and register through their microblog account, reducing the registration and login process. At present, the theme supports WeChat public account login (mainly for WeChat built-in browser on mobile end) and WeChat open platform login (mainly for PC end). According to the rules of WeChat, there are currently two platforms
four hundred and eighty-one
zero
One year ago (2023-11-09)

How to turn off the automatic generation of image thumbnail function of wordpress

Often, when writing an article, we will insert a picture, or upload a picture as a feature picture. Careful friends may find that there are three sizes of images in the upload folder. Why is this? In fact, it is automatically generated by WordPress when you upload pictures. The most direct disadvantage of doing this is to occupy
three hundred and eighty-nine
zero
One year ago (2023-11-07)

How to use the secondary domain name of wordpress website to store media library pictures

The reason for this article is mainly because the cool theme editor has made some WP stations inconvenient to use Tencent Cloud COS to store special fee soft coins and move to download, so today let me teach you how to set your own domain name to store media library pictures! If you want to better manage the pictures of WordPress website, you can customize and modify them
five hundred and four
zero
One year ago (2023-11-07)

How to modify the default login registration page of WordPress?

Many themes Baba customers will find that the login registration page presented by the website is different from that of the demo website after installing the theme. So what should we do? In fact, it is very simple. You only need to install a free login and registration plug-in. Solution: Go to the WP background - Plug in - Install Plug in - Search Plug in: wechat social
three hundred and thirty
zero
One year ago (2023-11-07)

Cool Theme Launches One click Import WordPress Theme Demo Data Function

Recently, we added a very practical function to all WordPress themes of Cool Theme: one click import of demo data. This function is very suitable for newly installed WordPress websites. After importing data, we can set the website as our demo website, which is very convenient for learning and understanding various operations of WordPress and themes
three hundred and five
zero
One year ago (2023-11-07)

How to make WordPress background articles and pages display corresponding IDs?

As mentioned in the title, today's WordPress tutorial will help you solve a common problem. What if I get the ID of the article or page? In WordPress, each category, article, and page has a unique ID. When using or developing themes, it may be necessary to obtain the corresponding article or page ID. For example, in showing
three hundred and fifty-seven
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: