-
Recent Posts
Recent Comments
Tags
adodb ajax android apache arguments box cache calendar css db document.ready EAN-13 excel forbidden framework getElementsByName hello world html IE java Javascript js keycode lazyload linux margin-top margin折叠 memcache mysql null php preload image QR Code session smarty wordpress xml 子主题 条形码 浮点数 盒子 质数 闲聊 雪 页面优化My Firends
Archives
Meta
Tag Archives: smarty
自己动手,写一个简单PHP框架 (番外3)
Smarty究竟缓存了什么?
缓存技术总是Web开发中一个乐此不疲的话题,无论多么强大的服务器,总有它的瓶颈,而缓存技术可以有效缓解瓶颈期的到来。
如同上一篇文章中提到的ADODB Recoredset Cache,它也是一种缓存,我将这种缓存成为数据库级的缓存,它是缓存的第一步,也是最为重要的一步。
我将缓存等级分为4个等级,他们重要性如箭头所示的那样:
数据库级 -> 服务级 -> 脚本级 -> 客户端级
今天要来探讨的是另一个等级的缓存,它工作在脚本下,所以我把这种缓存成为脚本级缓存。