Somehow I thought that was how it worked by default.  For example, my site
caches files as:

~/thepeoplesfeed/tmp/cache/views/www.thepeoplesfeed.com/...


What cache are you using?  I'm not sure the memory cache splits things by
domain.



On Tue, Jul 21, 2009 at 11:52 AM, Alessandro Scolavino <
rails-mailing-l...@andreas-s.net> wrote:

>
> Hello!
> i have made a multisite system.
>
> Depending on the url of the request (www.clerk.it / www.fastshare.it /
> ....) it generate a different website, this is the fron-end, each sites
> have a different back-end too where the user can manage a lot of
> different thing based upon the installation configuration (it's
> basically a CRM + ERP) so it's content can change every second.
>
> Now my problem is the following, if i enable caching in production
> enviroments the system will not send the correct resource (some image as
> attachment), this is caused by the fact that the url except for the
> domain name are the same so the caching system find a page named "index"
> and send it, even if it's not the correct one.
>
> My question is: can i set a different cache directory based on domain
> name? if yes.. how? (i have to add a new site without restarting the
> service of course...)
>
> Attachments:
> http://www.ruby-forum.com/attachment/3889/screenshot.zip
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


-- 
=====================
Jim
http://www.thepeoplesfeed.com/contribute

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to