访问量大的网站的缓存文件解决方案设想~该如何处理

WBOY
Release: 2016-06-13 12:49:39
Original
893 people have browsed it

访问量大的网站的缓存文件解决方案设想~~
首先就我的个人看法呢,我也不晓得php缓存有哪些具体种类,也不想去具体了解。

最为熟悉的缓存方式就是将网页上呈现的页面,缓存到一个文件。

比如说间隔1分钟再去更新一次。

这是最常见的,称之为“页面缓存”

那么有的人可能会有疑惑,这样日复一日,服务器上的缓存文件会越来越多。

其实也简单,设置cron job任务脚本,

比如判断在凌晨自动清空缓存就ok了。


------解决方案--------------------
直接生成静态页面就是了
列表页可能需要缓存,内容页要缓存干什么?还“隔1分钟再去更新一次”?
------解决方案--------------------
建议这篇文章,希望对楼主有帮助
http://www.wish-home.cn/post/95.html
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!