docbrown/app
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
..
assets Add pinned articles box to profiles (#3269) 2019-06-24 15:18:29 -04:00
black_box BlackBox specs #2524 (#2542) 2019-04-25 10:19:11 -04:00
controllers Add pinned articles box to profiles (#3269) 2019-06-24 15:18:29 -04:00
dashboards Add nightmode image (#2640) 2019-05-01 15:14:18 -04:00
decorators Beta polls feature (admin use only for now) (#3176) 2019-06-15 17:33:30 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
javascript Deduplicate history items (#3279) 2019-06-25 08:42:01 -04:00
jobs Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
labor Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
lib Add linuxrocks.online to Mastodon whitelist (#3068) 2019-06-07 10:02:49 -04:00
liquid_tags Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
mailers Remove code for legacy mentoring feature (#3186) 2019-06-21 17:18:11 -04:00
models Deduplicate history items (#3279) 2019-06-25 08:42:01 -04:00
observers Update slack channel name (#3218) 2019-06-18 14:47:53 -04:00
policies Remove code for legacy mentoring feature (#3186) 2019-06-21 17:18:11 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
services Return original body instead of nil for new comment push notifications (#3273) 2019-06-24 08:33:35 -04:00
uploaders Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
views Improve social card caching 🚀 (#3265) 2019-06-25 08:45:30 -04:00