Refreshing php websites seems slow.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.