【发布时间】:2013-12-06 11:54:50
【问题描述】:
我不确定这是否可能..
我是动态生成表格行,想把每一行缓存为一个页面片段..比如
<cfloop index="i" from="1" to="10">
<cfcache id="tableRow_#i#">
<tr><td>..some stuff..</td></tr>
</cfcache>
</cfloop>
然后在其他代码中,在 Applicaiton 的完全不同部分,我希望能够刷新单个片段。例如,如果我想刷新 'tableRow_2'..
<cfcache action="flush" id="tableRow_3">
谁能告诉我这种粒度是否可行,如果可行,最好的方法是什么。
我能找到的最接近的是<cflush expireURL="..">,但这会刷新页面中的所有缓存。我需要能够刷新页面中的各个缓存。
提前非常感谢!
杰森
【问题讨论】:
标签: coldfusion cfcache