aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/asset_pipeline.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-01 11:00:56 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-02-01 11:00:56 -0200
commit8b2c618cefef1ccd83d270cbacdd19abf4be9b2f (patch)
treefe5bbd630b52b80901a9030c059807366dcc7a41 /guides/source/asset_pipeline.md
parent407baa2b4cc462e42c9aaccc9850adad4462ea7e (diff)
parent437fa98e633e044e925c1fc7502a0a851b8bf718 (diff)
downloadrails-8b2c618cefef1ccd83d270cbacdd19abf4be9b2f.tar.gz
rails-8b2c618cefef1ccd83d270cbacdd19abf4be9b2f.tar.bz2
rails-8b2c618cefef1ccd83d270cbacdd19abf4be9b2f.zip
Merge pull request #23375 from prathamesh-sonpatki/fix-19835
Fix documentation related to `config.assets.cache_store` [ci skip]
Diffstat (limited to 'guides/source/asset_pipeline.md')
-rw-r--r--guides/source/asset_pipeline.md17
1 files changed, 6 insertions, 11 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md
index 5bdaf600ad..439f2bef3a 100644
--- a/guides/source/asset_pipeline.md
+++ b/guides/source/asset_pipeline.md
@@ -1177,19 +1177,14 @@ TIP: For further details have a look at the docs of your production web server:
Assets Cache Store
------------------
-The default Rails cache store will be used by Sprockets to cache assets in
-development and production. This can be changed by setting
-`config.assets.cache_store`:
+By default, Sprockets caches assets in `tmp/cache/assets` in development
+and production environments. This can be changed as follows:
```ruby
-config.assets.cache_store = :memory_store
-```
-
-The options accepted by the assets cache store are the same as the application's
-cache store.
-
-```ruby
-config.assets.cache_store = :memory_store, { size: 32.megabytes }
+config.assets.configure do |env|
+ env.cache = ActiveSupport::Cache.lookup_store(:memory_store,
+ { size: 32.megabytes })
+end
```
To disable the assets cache store: