Skip to content

Commit

Permalink
Don't use Solid Cache in development
Browse files Browse the repository at this point in the history
  • Loading branch information
djmb committed Aug 22, 2024
1 parent 47426c7 commit 750c6c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ gem "cgi", ">= 0.3.6", require: false

gem "prism"

gem "solid_cache", ">= 1.0.0"
gem "solid_cache", ">= 1.0.1"

group :lint do
gem "syntax_tree", "6.1.1", require: false
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/app_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def solid_cache_gemfile_entry
return if options[:skip_solid_cache]

comment = "Use Solid Cache for caching (http://github.com/rails/solid_cache)"
GemfileEntry.new("solid_cache", ">= 1.0.0", comment, {}, false)
GemfileEntry.new("solid_cache", ">= 1.0.1", comment, {}, false)
end

def bundle_command(command, env = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ Rails.application.configure do
end

# Change this to :null_store to avoid any caching
<%- if options[:skip_solid_cache] -%>
config.cache_store = :memory_store
<%- else -%>
config.cache_store = :solid_cache_store
<% end %>
<%- unless skip_active_storage? -%>

# Store uploaded files on the local file system (see config/storage.yml for options).
Expand Down

0 comments on commit 750c6c4

Please sign in to comment.