It's no secret that expiring caches is hard. But it's also tedious, error-prone, and it forces a lot of duplication as your sweeper code is tightly coupled to how your views work. And caching itself introduces complexity: by caching data, you're creating multiple ways to compute the same value. What if we could get rid of all this? James will show Primer, a Rails extension that means you'll never write another cache sweeper.
YOU MAY ALSO LIKE:
- Uncle Bob's Advanced TDD (in London on 30th - 31st October 2017)
- Uncle Bob's Clean Code: Agile Software Craftsmanship (in London on 1st - 3rd November 2017)
- Gojko Adzic's Specification by Example: From User Stories to Acceptance Tests (in London on 7th - 8th November 2017)
- Agile Testing & BDD eXchange 2017 (in London on 9th - 10th November 2017)