fix on pagination not working with Cache