类 CacheTag
java.lang.Object
org.beetl.core.tag.Tag
org.beetl.ext.tag.cache.CacheTag
cache标签,模板页面可以通过cache标签缓存模板内容
#: cache(key,timeout,refresh) 模板内容 #:}beetl将会把key值对应的模板内容放到cacheManger,下次访问时候,如果key值对应的模板内容在,就直接输出,而 不需要再次解析运行模板。如果指定了timeout,则在在timeout秒内,cache都有效,之后cache无效,将再次 解析运行模板
如果指定了refresh,则删除key值对应的模板内容,重新解析运行模板。
key值是必须的,timeout,和refresh可选。
- 从以下版本开始:
- 2.0
- 作者:
- xiandafu
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 org.beetl.core.tag.Tag
afterRender, containHtmlAttribute, doBodyRender, getArgs, getBodyContent, getHtmlAttribute, getParent, inintBase, init, setTagParent