Home > Backend Development > PHP Tutorial > 9 content recommendations that are too slow

9 content recommendations that are too slow

黄舟
Release: 2023-03-08 21:50:01
Original
1513 people have browsed it

I built a wordpress website and found that the speed is too slow. The mainstream optimization is just to reduce plug-ins, optimize static resources, staticize website pages, etc. But for a website without plug-ins, use the default theme, and the PHP file itself requires all requests. It takes more than 1 second (excluding resource file loading). Is this normal? Is this pot for WP or PHP? I haven’t looked at the WordPress code in detail (because I’m not very familiar with PHP), but I looked at the WP database and found that there are only a few tables. Then I was thinking about so many websites based on WP extensions. Are those customized attributes? Is it implemented through post_meta? If this is the case, will each get_post_meta trigger a query, in which case a page will be very slow. I don’t know if this is the case? After disabling all plug-ins and changing to the default theme, as shown above, it seems that the database query time is not very long. Why is the TTFB so big?

1. Wordpress speed

Introduction: I built a wordpress website and found that the speed is too slow. The mainstream optimization is just Reduce plug-ins, optimize static resources, staticize website pages, etc. However, for a website that does not have plug-ins installed and uses the default theme, the request for the PHP file itself takes more than 1 second (excluding resource file loading). Is this normal? This pot...

2. javascript - PHP file upload speed is too slow, is there any optimization method?

Introduction: 1. The average size of uploaded files is about 10M. 2. I am currently using apache. I heard that changing to nginx can speed up the process?

3. Regarding the slow upload speed of PHP files, is there any optimization method?

9 content recommendations that are too slow

Introduction: Regarding the slow upload speed of PHP files, is there any optimization method?

4. Nginx configuration ssl encryption (single and two-way authentication, partial https) nginx tomcat https nginx https proxy nginx configuration https generation

Introduction: nginx, https: Nginx configures SSL encryption (single and two-way authentication, partial https): Configuring SSL under nginx is originally very simple, whether you go to the certification center to buy an SSL security certificate or a self-signed certificate, but recently the company A requirement of OA, I have a chance to actually play around with it. At first, whole-site encryption was adopted, and all requests to access http:80 were forcibly converted (rewritten) to https. Later, the automated test results said that the response speed was too slow. https was 30 times slower than http. I thought how could it be possible? Do you know how they do it? Measured. So I tried some pages https (cannot be encrypted only for certain types of dynamic requests) and two-way authentication

5. Please give me some advice on php program optimization, the execution speed is too slow

Introduction: Please give me some advice on php program optimization, the execution speed is too slow

6. Thinkphp framework project, response The speed is too slow, it is not an ordinary card

Introduction: The response speed of the project done by thinkphp framework is too slow, it is not an ordinary card

7. Looking for a function that uses PHP to quickly generate a histogram. It is relatively slow to complete a simple function. How to solve

#Introduction: Looking for a function that uses PHP to quickly generate a histogram. It is currently relatively slow to complete a simple function. Looking for a function that can quickly generate a histogram using PHP. It is currently too slow to complete a simple function. As a beginner, I can only manipulate CSS to generate a simple histogram, but my function is extremely slow when the data is more than 25,000. When the data is a little more than 10,000, the time to generate the graph is more than 10 seconds. This speed is too slow, please help me improve it. PHP code