I don't think this is a bad idea at all. People just have different
need.
For example, if you're building an eCommerce site.
You might want to clone the Catalog database that holds all static
products information and deploy it on each front end app server. But
all the app servers share a
their specific data.
We had to jump through some hoops to make it work in rails so
hopefully
there is something in rails 3 to make life easier. I haven't been
able to
find any info on this so I'm guessing there isn't anything coming.
On Jul 9, 8:12 pm, trung tr...@phamcom.com wrote:
Is there any
Is there any support for multiple databases in Rails 3? Either
natively through ActiveRecord or third party gem?
Thanks.
--
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
to specify the cache sweeper in the
controller.
In your case, try to add this:
class SiteController ApplicationController
caches_action :index
cache_sweeper :listing_sweeper
Regards,
.Viet Trung.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
.
Thanks and regards,
.Viet Trung.
--
Posted via http://www.ruby-forum.com/.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send
Hi experts,
I have built a typical cache sweeper class:
#==
class PrivilegeCacheSweeper ActionController::Caching::Sweeper
observe User
def after_update(user)
expire_cache_for(user)
end
private
def expire_cache_for(user)
p Hi there!!!
6 matches
Mail list logo