strapi-community / strapi-plugin-rest-cache

Speed-up HTTP requests with LRU cache.
https://strapi-community.github.io/strapi-plugin-rest-cache/
MIT License
129 stars 29 forks source link

Documentation: authorized calls & caching #33

Closed BabyDino closed 1 year ago

BabyDino commented 2 years ago

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 1 year ago

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 1 year ago

Thank you! This makes sense.