1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix formatting error introduced in cc585c8.

This commit is contained in:
Nicholas Schultz-Møller 2013-01-16 11:44:55 +01:00
parent 0004ca3a97
commit 728f9c2eed

View file

@ -127,9 +127,10 @@ You can also combine the two schemes which is called "Russian Doll Caching":
<% end %>
<% end %>
<% end %>
It's called "Russian Doll Caching" because it nests multiple fragments. The advantage is that if a single product is updated, all the other inner fragments can be reused when regenerating the outer fragment.
```
It's called "Russian Doll Caching" because it nests multiple fragments. The advantage is that if a single product is updated, all the other inner fragments can be reused when regenerating the outer fragment.
### SQL Caching
Query caching is a Rails feature that caches the result set returned by each query so that if Rails encounters the same query again for that request, it will use the cached result set as opposed to running the query against the database again.