dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

Cache #527

Closed batinhell closed 10 years ago

batinhell commented 10 years ago

How can i reset cache after update? If it's possible at all.

dxg commented 10 years ago

You may call ORM.singleton.clear(); Personally, I disable the cache ORM wide, which you can do straight after connecting:

db.settings.set('instance.cache', false);

The cache isn't actually a cache. It implements singleton behaviour.

batinhell commented 10 years ago

I actually need cache, but I did not quite understand how it works. And I'm already solve my problem. Anyway, thank you for response.