# Is there an on\_reload hook?

**URL:** <https://www.ruby-forum.com/t/is-there-an-on-reload-hook/100371>\
**Category:** Rails\
**Created:** [February 2, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/is-there-an-on-reload-hook/100371 "2006-02-02T16:45:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [February 2, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/is-there-an-on-reload-hook/100371/1 "2006-02-02T16:45:42Z")

</div>

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
