Setting up caching on controller