Would it be bad practise to temp cache session's "/whoami" endpoint result, using redis, to reduce api calls being made to Ory? For example cache for 10 seconds, encrypt the data and cache by request cookies?
c
clever-ice-6330
01/19/2024, 2:57 AM
If you’re using the Ory Network paid account, they provide CDN caching for sessions. In local testing, I’ve implemented in-memory caching to speed things up.