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.