# Problems after caching

**URL:** <https://www.ruby-forum.com/t/problems-after-caching/156430>\
**Category:** Rails\
**Created:** [December 27, 2008, 11:57am UTC](https://www.ruby-forum.com/t/problems-after-caching/156430 "2008-12-27T11:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [December 27, 2008, 11:57am UTC](https://www.ruby-forum.com/t/problems-after-caching/156430/1 "2008-12-27T11:57:33Z")

</div>

Hey all

I m facing a problem,. Actually i m caching one action using  
caches\_action. On that page i also have pagiation. So if i enable  
caching the page loads faster but the pagination stops working…it  
redirects me to the same first every time i click next. If i stop  
caching it starts working properly.

Can ne one tell me the solution for it

thanks

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [December 27, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/problems-after-caching/156430/2 "2008-12-27T23:42:23Z")

</div>

Ankit P. wrote:

> thanks

Don’t quote me on this, but whenever I needed to perform caching and  
still have things like pagination working, I always used fragment  
caching. I know fragment caching isn’t as fast as action, but it is  
still faster than no caching and still lets parts of the page feel  
dynamic.

HTH

Matt
