fuel/orm — pull request #126 by kapv89 (2011-12-12 20:32:03+00:00)
Title: Added method to clear cached stuff

I recently encountered a situation where after some heavy db operations..... i tried a json_encode($model->to_array), and got an out-of-memory error. The problem was that the orm had cached a lot of stuff and a json_encode had a huge array to traverse. I added a method to clear cached objects, and cleared cached objects(:P) and it worked.

Here I have added some static methods to clear stuff which the orm/model caches ...