-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
I've just enabled the RedisCacheAdapter, and by default, it seems to be caching users and roles just fine, and according to the TTL that I've set (on parse-server 2.3.7).
However, the __SCHEMA cache defaults to 5 seconds, which I'm not sure would be of any value. There's this note in the definitions file for the defaults: https://github.com/ParsePlatform/parse-server/blob/2.3.7/src/cli/definitions/parse-server.js#L215
If I set this property as a config when initializing ParseServer via:
schemaCacheTTL: 60 * 1000,
I see the keys accumulating in Redis, but every request appears to generate a new …__ALL_KEYS and …__MAIN_SCHEMA key, each of which contains identical data, rather than using the previously cached value.
Is caching the SCHEMA through the redis adapter working for anyone? What have I missed?