From dcfb0ab1b75e3f1afb8d1dc9c442ff555a1210bc Mon Sep 17 00:00:00 2001 From: mmeest Date: Tue, 8 Sep 2026 14:11:08 +0300 Subject: [PATCH] Skip Rails cache lookup when session uuid is blank. Co-authored-by: Cursor --- app/controllers/concerns/authentication.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index 22a0e5c9..1c3d9d1c 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -36,6 +36,8 @@ def store_auth_info(token:, request_ip:, data:) private def auth_info + return if session[:uuid].blank? + cached_data = Rails.cache.fetch(session[:uuid]) || '' decrypted_data = Encryptor.decrypt(cached_data) return unless decrypted_data