Skip to content

Commit 172fb42

Browse files
committed
Merge pull request #315 from rails/schneems/fix-cache-location
Change default cache location back to original
2 parents 2f0a100 + 2aac886 commit 172fb42

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ config.assets.configure do |env|
9999
env.register_preprocessor 'application/javascript', MyProcessor
100100

101101
env.logger = Rails.logger
102-
103-
env.cache = ActiveSupport::Cache::FileStore.new("tmp/cache/assets")
104102
end
105103
```
106104

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def configure(&block)
9898

9999
config.assets.configure do |env|
100100
env.cache = Sprockets::Cache::FileStore.new(
101-
"#{env.root}/tmp/cache",
101+
"#{env.root}/tmp/cache/assets",
102102
config.assets.cache_limit,
103103
env.logger
104104
)

0 commit comments

Comments
 (0)