网页静态化时怎么办列表页的有关问题

WBOY
Release: 2016-06-13 13:15:32
Original
921 people have browsed it

网页静态化时怎么处理列表页的问题?
比如生成的当前列表页list_1.html,显示的是11-19的数据,后台添加一条数据后,哪么list_1.html就应该显示12-20的数据,这时候又要重新生成一下list_1.html,但如果以后数据很多了,有几千页,每添加一条数据都要重新生成一下所有列表页,会不会太麻烦了!大家是怎么处理的呢?

------解决方案--------------------
折中的办法是 每次有新添加的文章只生成访问量比较大的列表页,比如每次生成最新的10个列表页,后面的老文章列表访问量所占比例非常少,可以直接动态处理
------解决方案--------------------
一般只生成前几页,每天晚上定时生成所有页面就行了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!