# Caching Problem

**URL:** <https://www.ruby-forum.com/t/caching-problem/129354>\
**Category:** Rails\
**Created:** [February 17, 2008, 11:56am UTC](https://www.ruby-forum.com/t/caching-problem/129354 "2008-02-17T11:56:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 17, 2008, 11:56am UTC](https://www.ruby-forum.com/t/caching-problem/129354/1 "2008-02-17T11:56:59Z")

</div>

Hello,

I’m running rails 2.0.2 and mongrel 1.1.3, trying to get caching  
working with multiple parameters. I found sites that pointed out you  
need to make sure the parameters are part of the URL, so I have built  
routes to achieve this.

Cached fragment: localhost:3000/reports/meetings\_monthly/2 (0.00141)  
Completed in 0.16703 (5 reqs/sec) | Rendering: 0.05980 (35%) | DB:  
0.01709 (10%) | 200 OK [[http://localhost/reports/meetings\_monthly/](http://localhost/reports/meetings_monthly/)  
2/2008-03-17]

So, why is it that the URL includes the date, which is correct, but  
the cache does not? When I change the date, I get the same cached  
page.

Any help would be appreciated, I don’t know where to begin and as far  
as I can tell I’m doing this correctly. In the reports controller, I  
have:

caches\_action :meetings\_monthly, :quarterly\_time\_by\_person, :tracker,  
:presales,  
:accounting\_new, :accounting\_stalled,  
:accounting\_hibernating, :accounting\_forecast,  
:accounting\_billed, :accounting\_future

Thanks,  
-Jason

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 1, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/caching-problem/129354/2 "2008-03-01T21:07:48Z")

</div>

The problem ended up being the order of routes in routes.rb.
