提交 e9fd0e9d 编写于 作者: Z Zachary Scott

Merge pull request #18190 from ef718/master

Fix grammar in Caching with Rails docs
...@@ -107,7 +107,7 @@ This method generates a cache key that depends on all products and can be used i ...@@ -107,7 +107,7 @@ This method generates a cache key that depends on all products and can be used i
<% end %> <% end %>
``` ```
If you want to cache a fragment under certain condition you can use `cache_if` or `cache_unless` If you want to cache a fragment under certain conditions, you can use `cache_if` or `cache_unless`
```erb ```erb
<% cache_if (condition, cache_key_for_products) do %> <% cache_if (condition, cache_key_for_products) do %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册