From db19e9a561ff732e3ffcf32f36ccb4abb6cb0b5e Mon Sep 17 00:00:00 2001 From: theLazyProgrammer <48143641+nanafox@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:26:46 +0000 Subject: [PATCH] fix: Update cache invalidation method to use right key --- app/controllers/concerns/cacheable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/cacheable.rb b/app/controllers/concerns/cacheable.rb index b087aa3..fa025e9 100644 --- a/app/controllers/concerns/cacheable.rb +++ b/app/controllers/concerns/cacheable.rb @@ -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.