Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Clear Documentation #564

Closed
toddpi314 opened this issue Oct 22, 2014 · 2 comments
Closed

Cache Clear Documentation #564

toddpi314 opened this issue Oct 22, 2014 · 2 comments

Comments

@toddpi314
Copy link

For many use cases, the ORM module cache needs to be manually cleared.
This is useful in cases where you are bootstrapping mocha tests and need isolation, or are pooling resources on a server.

This can be done by calling orm.singleton.clear().

Can someone update the documentation to reflect this?

@lvanbuiten
Copy link

It saved me some headache! I don't know why they don't refresh the cache when a model has changed. When i have a 'list' with 'items' and create a new 'item', the list doesn't retrieve the new item on page refresh, it does on server restart...

@dxg
Copy link
Collaborator

dxg commented Feb 4, 2016

The cache is not a cache, but an identity pattern implementation. I hope to disable it by default and rename accordingly in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants