I've got an issue that came up once I went to two production servers
with a class (a set of classes actually) that gets updated
dynamically. It only gets updated on one server and not the other
until I do a restart (which is the correct rails behavior, but not
what I want).
It looks to me like the Dependencies Module does a "require" if you
choose to cache_classes, and a "load" otherwise, and they get called
each time the class is referenced. Or something like that.
Anyway, I have a set of classes that are created and updated on the
fly, for which the underlying tables are created and updated on the
fly, and for those I'd like to re-load the class each time it is
referenced (or re-require it). Actually, ideally I'd only do this
when the class/table definition is changed, because those moments are
easily identified in my code. The problem with that of course is that
notifying the other server(s) that HEY, UPDATE YOUR MODEL is non-
trivial (to me anyway), so I'd be happy with a solution that just did
a load for that set of classes as though they were running in
development mode, while the rest of my classes were cached normally.
Any help on this is greatly appreciated.