Article From:

With more and more web site data, the generated pages may reach hundreds of millions of millions, and the time of generation may reach one day or more, so how to quickly generate static pages?

Answer 0:

cdn redisCaching can be used all the time. Why not generate static HTML?
I have a website, written by PHP, for the first time to render the page, and the next visit is all CDN returned. Is there no need to generate static HTML?

Answer 1:

crontab Timed task


Answer 2:

This so-called static way is not at all saved.

Answer 3:

First. Why do we need to regenerate all data and not add data time? Would it be good to update the latest data by time?
If there is a similar news structure on the static page. Just change this part into Ajax, that’s almost the same.

On the other hand, it is mentioned upstairs that static pages are generated when the page is visited. When the server is configured, the jump is good

Answer 4:

The individual feels that the trigger is better, and the non generated pseudo static access via the server is configured to trigger the corresponding path entity static file when the spider or the visitor is accessed. When re visited, the server returns directly to the entity static HTML file. If hundreds of thousands of data are generated at once, it is very painful.A bitter thing.

Answer 5:

First of all, thank you for answering my question, and everyone agreed that it was no problem and good to generate static pages by triggering, but my intention was:Reduce the time of PHP to generate a single HTML page。No matter how active or triggered, you haven’t considered how to optimize the production of the page.
Welcome everyone to participate actively, thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *