Moved setting the cache into the mixin