From 48aa94693c3ce2c07812488088b962a06a2ec565 Mon Sep 17 00:00:00 2001 From: Daniel Steele Date: Sat, 26 Aug 2017 11:49:13 +0100 Subject: Correct wording and adding info [ci skip] I had to do some I was unsure what kind of caching it was performing, and had to do some Googling. Also improves the wording. --- guides/source/action_mailer_basics.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md index ba26c922be..038148f75b 100644 --- a/guides/source/action_mailer_basics.md +++ b/guides/source/action_mailer_basics.md @@ -413,7 +413,7 @@ inside of Action Controller, so you can use all the same options, such as #### Caching mailer view -You can do cache in mailer views like in application views using `cache` method. +You can perform fragment caching in mailer views like in application views using the `cache` method. ``` <% cache do %> @@ -427,6 +427,9 @@ And in order to use this feature, you need to configure your application with th config.action_mailer.perform_caching = true ``` +Fragment caching is also supported in multipart emails. +Read more about caching in the [Rails caching guide](caching_with_rails.html). + ### Action Mailer Layouts Just like controller views, you can also have mailer layouts. The layout name -- cgit v1.2.3