Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我正在生成这样的缓存块:
<% cache ['v1', current_user, 'info'] do %> Info HEre <% end %>
如何使片段过期?
您需要在编辑此片段的所有操作中编写这行代码:
expire_fragment(['v1', current_user, 'info'])
我正在使用 eclipse(juno 和以前的版本)来编写 JSF 代码。这些页面都是xhtml。每隔一段时间我需要添加javascript。当我这样做时,我必须使用 CDATA 标记,否则当我有某些字符(如 > < &)时 xhtml 无效。
无论如何,该解决方案运行良好,直到我告诉 eclipse 格式化代码,此时它删除了