docbrown/spec
rhymes 87167de8c5 Use correct cache keys on the articles API index endpoint (#5606) [deploy]
Surrogate keys are about setting expectations on cache purging.

Presently we use a combination of all parameters to set changing surrogate keys depending on the result of the `ArticleApiIndexService`. This approach has two limitations:

- if two set of params lead to the same exact set of articles, we still create two different caches

- deleted articles will remain for 24 hours in the cache because the cache key doesn't take the record keys into account

By simply using record keys we make sure that different params leading to the same result set will share the same cache and that deleted keys won't appear anymore in the cache.
2020-01-23 08:40:19 -05:00
..
black_box Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
decorators Introduce BanishedUser table (#5589) [deploy] 2020-01-21 17:15:58 -05:00
factories Introduce BanishedUser table (#5589) [deploy] 2020-01-21 17:15:58 -05:00
fixtures Creating podcasts by users (#3730) [deploy] 2020-01-08 16:14:25 -05:00
helpers Fix linting (#4933) [deploy] 2019-11-26 08:35:34 -05:00
initializers Group Honeybadger Rack::Timeout::RequestTimeoutExceptions (#5231) [deploy] 2019-12-23 19:34:08 -06:00
jobs Remove IndexJob and spec (#5654) 2020-01-22 15:18:29 -05:00
labor Refactor RateLimitChecker (#5521) 2020-01-20 11:27:54 -05:00
lib Increase cache TTL for social preview images (#5471) [deploy] 2020-01-17 17:06:06 -05:00
liquid_tags Fix error handling bugs in stackexchange tag (#5490) 2020-01-20 14:43:25 -05:00
mailers Restore default email from SiteConfig for mailers (#5399) [deploy] 2020-01-08 16:09:32 -05:00
models Replace Notifications::NotifiableActionJob with Notifications::NotifiableActionWorker for Sidekiq (#5588) [deploy] 2020-01-22 09:40:55 -05:00
observers Move SlackBotPingJob to Sidekiq (#5615) 2020-01-22 08:24:33 -05:00
policies Fix Rubocop lints (#5155) 2019-12-19 10:09:37 -05:00
requests Use correct cache keys on the articles API index endpoint (#5606) [deploy] 2020-01-23 08:40:19 -05:00
routing Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
services Replace Notifications::NotifiableActionJob with Notifications::NotifiableActionWorker for Sidekiq (#5588) [deploy] 2020-01-22 09:40:55 -05:00
support Fix error handling bugs in stackexchange tag (#5490) 2020-01-20 14:43:25 -05:00
system Remove flaky edit button spec (#5579) 2020-01-18 20:32:21 -05:00
uploaders Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
views Improve test speed (#3957) [ci skip] 2019-09-12 16:17:20 -04:00
workers Replace Notifications::NotifiableActionJob with Notifications::NotifiableActionWorker for Sidekiq (#5588) [deploy] 2020-01-22 09:40:55 -05:00
rails_helper.rb Sidekiq: add test helpers (#5326) 2020-01-02 08:39:40 -05:00
spec_helper.rb Temporarily comment out random (#2486) 2019-04-18 11:56:38 -04:00