adding caching to application controller