# Funky cache path name is generated for rss( feed.rss.rss )

**URL:** <https://www.ruby-forum.com/t/funky-cache-path-name-is-generated-for-rss-feed-rss-rss/129296>\
**Category:** Rails\
**Created:** [February 16, 2008, 8:33am UTC](https://www.ruby-forum.com/t/funky-cache-path-name-is-generated-for-rss-feed-rss-rss/129296 "2008-02-16T08:33:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaxm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/54ee81/32.png) [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Post date:** [February 16, 2008, 8:33am UTC](https://www.ruby-forum.com/t/funky-cache-path-name-is-generated-for-rss-feed-rss-rss/129296/1 "2008-02-16T08:33:57Z")

</div>

In my routes.rb, I have  
map.all\_product\_feed ‘/feed.rss’, :controller =\> ‘product’, :action =\>  
‘rss’

in my ProductController, I use action cache:  
caches\_action :rss

if I access [http://localtest.com/product/rss](http://localtest.com/product/rss), the log shows that the  
action is cached as [localtest.com/feed.rss](http://localtest.com/feed.rss)

but when I access [http://localtest.com/feed.rss](http://localtest.com/feed.rss), the log shows that the  
action is cached as [localtest.com/feed.rss.rss](http://localtest.com/feed.rss.rss).

when I edit a product which causes a cache sweeper to run, only the  
cache [localtest.com/products.rss](http://localtest.com/products.rss) got deleted.

so I am getting stale data when accessing [http://localtest.com/feed.rss](http://localtest.com/feed.rss).

Is there a way to control the cache path/key?

Is this a bug in rails where an extra “.rss” is appended?

Thanks.
