Forum: Ruby on Rails Fragment Caching - happening twice

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C56c078159148c1e3ac494ad8a7a74e0?d=identicon&s=25 raghus (Guest)
on 2007-06-01 06:01
(Received via mailing list)
I am using fragment caching - the cache gets stored under RAILS_ROOT/
tmp/cache/www.mysite.com but if I go to http://mysite.com (no www)
then a *second* cache gets stored at RAILS_ROOT/tmp/cache/mysite.com -
from this point on the cache is hit but I end up with 2X the DB hits I
really need. How can I avoid this?

Also where can I configure the fragment cache location - I was
thinking of putting it under RAILS_ROOT/public

Thanks
This topic is locked and can not be replied to.