From: sophana <so...@zi...> - 2007-03-21 16:40:37
|
Hi I have a question about the sqlObject cache. I'm 2 web servers over 2 replicated mysql server for high availability. What I'm actually doing is to disable the connection cache. Looking at connection debug log, there are a lot of useless transactions that could be cached. So I had the idea of calling connection.cache.weakrefAll() at the beginning of all web transactions. I checked the code and saw that it should work with no problem, as a cache lock is acquired before doing the operation. Do you think it should work? But looking at the log, I saw that the transaction are not the same between 2 identical web requests. (with an idle test webserver) I'm suspecting the cache cull system. How can I disable the cull system? Maybe there should be a connection parameter for this? Thanks |