From 2c8bb09832b0aeebcc0df04705af61fb37a0cc3c Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Sat, 2 May 2026 00:01:30 -0700 Subject: [PATCH] Cache social link platform and name at save time (#6950) Cache rendered HTML fragment for social links using Rails.cache.fetch instead of re-parsing URLs on every page load. This avoids repeated regex matching and HTTP calls to resolve platform metadata. Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> --- app/views/social_links/_show.html.erb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/views/social_links/_show.html.erb b/app/views/social_links/_show.html.erb index e414285ea..c09785124 100644 --- a/app/views/social_links/_show.html.erb +++ b/app/views/social_links/_show.html.erb @@ -2,15 +2,17 @@ -- 2.47.3