[openstreetmap/openstreetmap-website] Cache social link platform and name at save time (PR #6950)

Marwin Hochfelsner notifications at github.com
Sun Apr 5 21:06:30 UTC 2026


@hlfan 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 } %>

> Eliminates the `parsed` variable

So why is it still there?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6950#discussion_r3037356006
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6950/review/4059839674 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260405/3caa16fd/attachment.htm>


More information about the rails-dev mailing list