Mat*_*ham 25 ruby ruby-on-rails
一段时间后,我将如何使片段缓存过期.我偶然发现了timed_fragment_cache宝石的参考,但似乎过时了.
Ale*_*lex 75
使用ActiveSupport::Cache::Store,你应该能够做到
<% cache(key, expires_in: 1.hour) do %>
<!-- content -->
<% end %>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11009 次 |
| 最近记录: |