added support for caching in before_ controller actions