Typecho single-entry access?

Source: Internet
Author: User
Typecho is a single entry. I know that every time a page is accessed, it is the index content, and the corresponding widget is called to respond according to the input path. In this case, the program does not need to be initialized every time. does this affect the efficiency, and if it is to read data... typecho is a single entry. I know that every time a page is accessed, it is the index content, and the corresponding widget is called to respond according to the input path. In this case, the program does not need to be initialized every time, which affects the efficiency. In addition, if it is to read the database, the database will be overwritten every time, will it also affect performance? I just learned php. thank you very much.

Reply content:

Typecho is a single entry. I know that every time a page is accessed, it is the index content, and the corresponding widget is called to respond according to the input path. In this case, the program does not need to be initialized every time, which affects the efficiency. In addition, if it is to read the database, the database will be overwritten every time, will it also affect performance? I just learned php. thank you very much.

The lifecycle of PHP is like this.
A request, a process, initializing resources,
Request ended, process ended, resource released

Non-single-entry programs cannot escape these steps. they can simplify unnecessary initialization code as needed, but the added maintenance cost is also high.

To be more efficient, you can only increase it in some other ways, such as caching the database.

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.