aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/caching_with_rails.md
diff options
context:
space:
mode:
authorsoartec-lab <info@soartec-lab.work>2019-04-02 23:53:45 +0900
committersoartec-lab <info@soartec-lab.work>2019-04-03 09:46:29 +0900
commite27a511b66d0741625cf125ecdbf021dff0e193a (patch)
tree4dbd7528906760247c336852f7c1127361d3744d /guides/source/caching_with_rails.md
parent015bfd1e705084b7dd5d4f2e38708a40b562dea3 (diff)
downloadrails-e27a511b66d0741625cf125ecdbf021dff0e193a.tar.gz
rails-e27a511b66d0741625cf125ecdbf021dff0e193a.tar.bz2
rails-e27a511b66d0741625cf125ecdbf021dff0e193a.zip
Fixed description of the `cache_key_with_version` method [ci skip]
Diffstat (limited to 'guides/source/caching_with_rails.md')
-rw-r--r--guides/source/caching_with_rails.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md
index f6612ba338..3f013fff3a 100644
--- a/guides/source/caching_with_rails.md
+++ b/guides/source/caching_with_rails.md
@@ -302,7 +302,7 @@ class Product < ApplicationRecord
end
```
-NOTE: Notice that in this example we used the `cache_key_with_version` method, so the resulting cache key will be something like `products/233-20140225082222765838000/competing_price`. `cache_key_with_version` generates a string based on the model's `id` and `updated_at` attributes. This is a common convention and has the benefit of invalidating the cache whenever the product is updated. In general, when you use low-level caching for instance level information, you need to generate a cache key.
+NOTE: Notice that in this example we used the `cache_key_with_version` method, so the resulting cache key will be something like `products/233-20140225082222765838000/competing_price`. `cache_key_with_version` generates a string based on the model's class name, `id`, and `updated_at` attributes. This is a common convention and has the benefit of invalidating the cache whenever the product is updated. In general, when you use low-level caching for instance level information, you need to generate a cache key.
### SQL Caching