[openstreetmap/openstreetmap-website] Cache social link platform and name at save time (PR #6950)
Matt Van Horn
notifications at github.com
Sun Apr 5 21:30:06 UTC 2026
@mvanhorn commented on this pull request.
> @@ -2,13 +2,14 @@
<ul class="list-unstyled social_links mb-0">
<% social_links.each do |social_link| %>
+ <% parsed = Rails.cache.fetch("social_link/#{social_link.url}") { social_link.parsed } %>
Good catch - removed the stale `parsed` variable in f354adc. The PR description was out of date after the cache rework; the code now inlines `social_link.parsed` directly.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6950#discussion_r3037379350
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6950/review/4059855877 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260405/395687a8/attachment.htm>
More information about the rails-dev
mailing list