Skip to content

Commit

Permalink
fix: Update cache invalidation method to use right key
Browse files Browse the repository at this point in the history
  • Loading branch information
nanafox committed Sep 18, 2024
1 parent 8631340 commit db19e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/cacheable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def generate_list_cache_key(base_key:, page:, page_size:, filters: {})

# Invalidates all caches for paginated lists matching the developer ID.
def invalidate_list_cache(base_key:)
Rails.cache.delete_matched("#{base_key}/*")
Rails.cache.delete_matched("#{base_key}*")
end

# Invalidates a specific resource's cache.
Expand Down

0 comments on commit db19e9a

Please sign in to comment.