Fix caching with will_paginate gem.