Forum: Ruby on Rails Is there an on_reload hook?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bd6167863690cb320d65bb9204619817?d=identicon&s=25 David Clements (Guest)
on 2006-02-02 16:45
(Received via mailing list)
I am working on a code base that uses a fair amount of custom queries
and
then caches the result in an instance var.  Now when I call reload I
need to
clear out this cached data.   I looked for an on_reload hook and didn't
find
one in the API for ActiveRecord.

Any ideas?

Thanks,
Dave
This topic is locked and can not be replied to.