Skip to content

Cache Clear Documentation #564

Closed
Closed

Description

@toddpi314

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?

Activity

  1. lvanbuiten commented on Feb 4, 2016

    @lvanbuiten

    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...

  2. dxg commented on Feb 4, 2016

    @dxg
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions