docbrown/app/views/social_previews
Mike Coutermarsh 8afb797ec9 Improve social card caching 🚀 (#3265)
* Add failing tests for social previews controller. HTML changes between
requests, which breaks caching.

Since we use the HTML to generate the cache key. When the views have any
randomness in them, it breaks the cache, which means we regenerate
images on each request, rather than using what's in memcached.

Adding test to protect from regressions

* Fix randomness in social card templates

The aria tags are randomly generated. Since this is for rendering
images, they aren't needed.

* Make the linter happy by using the sanitize helper
2019-06-25 08:45:30 -04:00
..
article.html.erb Improve social card caching 🚀 (#3265) 2019-06-25 08:45:30 -04:00
listing.html.erb Improve social card caching 🚀 (#3265) 2019-06-25 08:45:30 -04:00
shecoded.html.erb Add alternative texts to images (#2771) [ci skip] 2019-05-09 11:16:03 -04:00
tag.html.erb Improve social card caching 🚀 (#3265) 2019-06-25 08:45:30 -04:00
user.html.erb Improve social card caching 🚀 (#3265) 2019-06-25 08:45:30 -04:00