From 1ebbe30f775f2b21ce2a0ac774764380f6df7071 Mon Sep 17 00:00:00 2001 From: Max Fierke Date: Sun, 5 Nov 2023 14:14:36 -0600 Subject: [PATCH] Don't cache avatar and header image URLs --- app/serializers/api/v1/user_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/api/v1/user_serializer.rb b/app/serializers/api/v1/user_serializer.rb index 3475d042..5afc660c 100644 --- a/app/serializers/api/v1/user_serializer.rb +++ b/app/serializers/api/v1/user_serializer.rb @@ -3,7 +3,7 @@ module V1 class UserSerializer < ActiveModel::Serializer include ApplicationHelper - cache key: 'user', expires_in: 12.hours + cache key: 'user', expires_in: 12.hours, except: [:avatar_url, :header_image_url] attributes :id, :first_name, :last_name, :about_me, :tagline, :full_name, :copyright_range, :avatar_url, :avatar_label, :header_image_url