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:
- Jenny Martin and Pete Buckney's BDD From Start to Finish - Successful Delivery through Continuous Collaboration (in London on 23rd - 25th January 2017)
- Testing in Java (in London on 23rd February 2017)
- Gojko Adzic's Specification by Example: From User Stories to Acceptance Tests (in London on 9th - 10th March 2017)
- Agile Testing & BDD eXchange 2017 (in London on 9th - 10th November 2017)