Documentation: authorized calls & caching
BabyDino opened this issue · 2 comments
BabyDino commented
This chapter has no content, but I am trying to figure out a way to cache authorized calls. Can anyone point me in a general direction to cache authorized calls (without setting hitmiss to false).
And setting a key based on ctx
, is that maybe that could be considered as a feature? For example: use the role id of the user to create a caching key.
stafyniaksacha commented
Hello @BabyDino
We have updated the documentation, here are more details about cache keys and auth with two examples (one public shared cache, and one per user cache):
https://strapi-community.github.io/strapi-plugin-rest-cache/guide/strategy/cache-keys.html
BabyDino commented
Thank you! This makes sense.