Skip to content

Commit fc920ce

Browse files
authored
Update README.md - correct path_cache_key code example
1 parent ffaa7ca commit fc920ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ end
477477
field :cached_avatar_url, String, null: false
478478

479479
def cached_avatar_url
480-
cache_fragment(query_cache_key: "post_avatar_url(#{object.id})") { object.avatar_url }
480+
cache_fragment(path_cache_key: "post_avatar_url(#{object.id})") { object.avatar_url }
481481
end
482482
```
483483

0 commit comments

Comments
 (0)