# Caching without domains in the path

**URL:** <https://www.ruby-forum.com/t/caching-without-domains-in-the-path/107995>\
**Category:** Rails\
**Created:** [June 28, 2007, 6:51am UTC](https://www.ruby-forum.com/t/caching-without-domains-in-the-path/107995 "2007-06-28T06:51:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisfinne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f1d935/32.png) [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Post date:** [June 28, 2007, 6:51am UTC](https://www.ruby-forum.com/t/caching-without-domains-in-the-path/107995/1 "2007-06-28T06:51:31Z")

</div>

Okay, so I was reading the caching tutorial over on Rails Envy (which  
is great, btw), but I’m having the same problem as someone in the  
comments, and not sure how to move beyond it (a newbie to all this  
back end stuff…)

I have action caching working on a model (in fact two of them);  
however, the fragment is stored in two places:  
/tmp/cache/domain.com/…  
and  
/tmp/cache/www.domain.com/…

so expiring them is a bit tricky.  
from the same comments under the above mentioned tutorial, I  
understand one solution might be to overwrite fragment\_cache\_key, and  
yet without a little more guidance, my ruby is not up to the  
challenge…any advice?

Thanks in advance.
