Skip to content

Unexpected object caching #2565

Closed
Closed
@drbarto

Description

@drbarto

For testing purpose, I regularly want to reset the database content with mongorestore (parse-server is shut down while running that command). After the reset I run some code which creates a new class. Then, when I repeat the process -- reset the db, run the code again -- something weird happens: Parse seems to remember that class's instances from the previous run and recreates them. So with every run, I get more instances.

Again in short:

  1. reset mongodb
  2. create new class, add instance A
  3. reset mongodb again
  4. create new class, add instance B
  5. now Parse contains instances A and B!

Can this be explained, or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions