On 8/24/06, Scott R Brittain <[EMAIL PROTECTED]> wrote: > > In our app we've a number of singleton ruby classes that cache static data > in hashes, things like > string values, system config params, etc). In a webbrick environment this > works ok, but we find > in production we have a problem because we have 4 caches, one for each > mongrel instance. > > This also isn't a BIG problem, but our cache.reload() methods are kinda > useless now, because > we can't direct this call to a specific mongrel/rails instance.
Keep a local cache. Every minute or five minutes or whatever ask a master cache shared via drb if it has changed, and if it has, update the local cache from it. Kirk Haines _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users