From 5aac8cefd2e0391b8b93c05d2fb3abdd913b50bb Mon Sep 17 00:00:00 2001 From: Rabbit Date: Tue, 12 Nov 2024 13:35:54 +0800 Subject: [PATCH] chore: update dalli client TTL conf --- config/environments/production.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 340573921..7510b3b38 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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,