Split cache view into view and mixin and use mixin for a method decorator