caching now works with pagination