Committing code for Caching, pagination and sorting