Rails will_paginater and result refresh
I use will_paginate for my project and it works fine but.. When i search
for users ordered by current_sign_in_at i have correct results for first
page, but when in the meantime somebody login and i go to second page -
second page doesnt return correct results. Last result on second page is
replaced with last from first page. I know what is a problem - new logged
user is moved on first position soo the last user from first page is moved
+1.
How can i resolve this? Some results query cache?
No comments:
Post a Comment