Skip to content

Commit

Permalink
Don't cache avatar and header image URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Nov 5, 2023
1 parent ff589ad commit 1ebbe30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/api/v1/user_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ebbe30

Please sign in to comment.