Skip to content

Commit

Permalink
chore: update dalli client TTL conf
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Nov 12, 2024
1 parent 6c730b3 commit 5aac8ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

client = Dalli::Client.new(ENV["MEMCACHED_URL"],
value_max_bytes: 10485760)
client = Dalli::Client.new(ENV["MEMCACHED_URL"], value_max_bytes: 10485760, expires_in: 86400)
config.action_dispatch.rack_cache = {
verbose: true,
metastore: client,
Expand Down

0 comments on commit 5aac8ce

Please sign in to comment.