<p>Yes, as the comment for that commit says I had to disable the caching...</p>

<p>Action caching is a bit of a nightmare really - well most of the rails caching is a bit of a nightmare but action caching is worse that fragment caching. I suspect the caching isn't critical but it we would be good to get some proper measurements of whether more caching would speed things up - perhaps with more fragment caches in appropriate places.</p>

<p>As you say, the js templates could be handled with data attributes, or by adding <code>OSM.logged_in</code> etc to the block in <code>app/views/layout/_head.html.erb</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/issues/79#issuecomment-19474549'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpuSBf_md-PaNRdmqzHGAAX2YIztkkUer-qBjU_GlRcB-.gif' height='1' width='1'></p>