]> git.openstreetmap.org Git - rails.git/commit
Cache social link platform and name at save time (#6950)
authorMatt Van Horn <mvanhorn@users.noreply.github.com>
Sat, 2 May 2026 07:01:30 +0000 (00:01 -0700)
committerGitHub <noreply@github.com>
Sat, 2 May 2026 07:01:30 +0000 (09:01 +0200)
commit2c8bb09832b0aeebcc0df04705af61fb37a0cc3c
tree47203985a5c0147823b70ed4590798ae60e70afb
parent5448023a3786df61f1830d2c277ac0487d9a7ffb
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