Simple ideas of stupid people.

Source: Internet
Author: User
Simple ideas of stupid people. It has always been used for small websites, and the modules of small websites are relatively fixed. Therefore, we want to separate the front-end from the back-end. the front-end uses & nbsp; php + pseudo-static. instead of reading the database, the back-end directly generates the corresponding files, which are included in the front-end. For example, if I publish a news item and generate the latest news list on the right, it can be called on the right. Save the news data as a php file to access the detailed page of news, so that you do not need to read the database. Let's talk about the simple idea of a pseudo-static stupid person.
It has always been used for small websites, and the modules of small websites are relatively fixed.

So I want to separate the front-end from the back-end. the front-end uses php + pseudo-static, and does not read the database at all.

The background directly generates corresponding files, which are included in the foreground.

For example, if I publish a news item and generate the latest news list on the right, it can be called on the right.

Save the news data as a php file to access the detailed page of news, so that you do not need to read the database.

In addition, pseudo-static data can be used to dynamically update the website in real time to generate static data, without reading the database or publishing the entire site every time an article is written.


Is it necessary?
------ Solution --------------------
This is not a new idea. it is a common practice of ASP websites over a decade ago.

I don't know why I am afraid of the database.
------ Solution --------------------
Generate static? The obsolete product of Chinese CMS...

This type of static data still needs to be removed from the hard disk. The current cache technology does not need to go to the hard disk to find data, and the memory prices are all cabbage prices...
------ Solution --------------------
I can use the CMS to look at the Design Days. do you want to write one? Do you want to exercise? Or is it done only?
------ Solution --------------------
You can use one of them to display the static data cache of the hard disk and then overwrite the data cache of the memory. in this way, the entire project is clear and smooth.
I have previously done similar data caching to easily solve 0.2 million IP requests.
First, and then find the problem and solution. there will always be more ways to do than practice.

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.