Adds caching_allowed? method that has been removed from Rails core