The speed of refreshing php websites is a little slow. What are the factors that affect Website & nbsp; load & nbsp; time? Database mysql considerations: Design of database query statements? Have you set the cache? Php statement usage? Sharing: php websites are refreshing and browsing a bit slow.
What are the factors that affect Website load time?
Mysql database
Considerations: Design of database query statements? Have you set the cache? Php statement usage?
Share: More
------ Solution --------------------
1. network problems
2. data IO
Generally, I/O processing is the slowest. add some timestamps to your program to check the execution time of each command.
------ Solution --------------------
In addition to the compilation cache and data cache mechanisms, the impact on the database is relatively large without considering some objective factors such as hardware.
------ Solution --------------------
Reference:
Quote: reference:
1. network problems
2. data IO
Generally, I/O processing is the slowest. add some timestamps to your program to check the execution time of each command.
Other factors will accelerate the speed of opening and loading some websites if you are considerate?
The company website introduces a Sina Weibo interface, and then checks the website load in the background. This Sina Weibo interface needs to be loaded for a period of time.
So load it asynchronously. Weibo information displayed on many websites is asynchronous.
Or you can cache this.