Skip to content

setting writeToCache: false still writes models to cache #510

Description

@jaredrada

Believe I found a bug related to optionally storing models in the modelStore.

this.app.fetcher.fetch(
        {
            user: {model: 'Account',}
        },
        {
            'readFromCache': false,
            'writeToCache': false //handle this manually in the success method (handleLoginResponse)
        },
        this.handleLoginResponse.bind(this)
    );

If we set a breakpoint in this.handleLoginResponse we will find that this.app.fetcher.modelStore.cache has an entry for the Account model. If you check shared/fetcher.js we see the option to skip the write to cache is respected. However if we look at line shared/base/model.js in the model is still written to the store.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions