Adding custom cache rebuild functions

This allows plugin authors to easily include their own rebuild/reload function if they add a cache. From the thread I posted [here](http://community.mybb.com/thread-150052.html)