Skip to content

"schemaCacheTTL" ParseServerOption is not working #7119

@jack092123

Description

@jack092123

New Issue Checklist

Issue Description

It seems schemaCacheTTL ParseServerOption is not working. It still follows cacheAdapter's setting.

Steps to reproduce

ParseOption
enableSingleSchemaCache: true,
schemaCacheTTL: 3600000, (1hr)
cacheAdapter: RedisCacheAdapter

Actual Outcome

After a simple request, I check the keys in Redis. The schema cache's TTL is 30 seconds which is the RedisCacheAdapter's default TTL.

Environment

Server

  • Parse Server version: 4.3.0
  • Operating system: MacOS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.6
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

I'm not quite sure, but I think the problem might be here. It doesn't pass the TTL config to the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions