I'm using active_record_slave to read some records from slave database. It uses special abstract model which connects to slave database using establish_connection and all reads go through this model by default.
My case (consider this happens inside http request/response cycle):
AR::Base.connection_pool to master database and this will clear the cache for this connection pool but not for connection pool of the model for slave database.AR.uncached cannot be used because it works only for AR::Base.connection_pool.
Can I make a backport?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/0cf6351a-a8f7-409e-a012-d6f9f11c6d96%40googlegroups.com.