rails 4 compatible if actionpack-action_caching or actionpack-page_caching are not enabled