Ask a question about paging a data
For example, there are tens of thousands of data, paging, if each page 50, a total of thousands of pages, each page generated HTML files.
Each time you add a piece of data, you need to update the thousands of HTML to ensure that the first HTML is the most current data.
Feel too wasted, is there a better way?
------to solve the idea----------------------
This is a static file generation policy issue:
If you do not regenerate all of the list pages each time (with new content), just regenerate the first few pages (for example, 10 pages)
This will not need to regenerate from the original 11 page after adding 50 new content.
Of course, if the period after paging to 10 pages, may be to lose some information, but the number of browsing data (50*10) in the short term can not see is not related
You can also use dynamic pages to compensate for this missing
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.