PHP page Static-optimize page response time

Source: Internet
Author: User
Such as: Dynamic page static, optimize the database, use load balancing, use cache and so on can optimize the page response time.

If some content on the page does not change frequently (hours, days or longer without making changes), it is a very effective way to accelerate the dynamic page static, such as: News release system, article publishing system, etc.

The benefits of dynamic page statics:

1. Reduce the computational time of server scripts;

2, reduce the response time of the server, reduce the pressure of the server;

For example, when we are going to execute a php file, we usually go through the steps of "parsing", "compiling" and "running", but when we go to execute an HTML file, we only need to pass the "run" step. So this will save a part of the time;

Also, when we are going to execute a dynamic program, we usually go through the "Connect database server or cache server", "Get Data", "populate the data to the template" steps, and then render the page to the user, and the static file will be directly "run" and then render the page to the user. It also saves a part of the time;

The above describes the PHP page static-Optimized page response time, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.