Added a cached_method call to paginate extension.