سؤال

well caching is a perfect way to speed up access to data which are public ( all users of website ) and frequently used. but what about data that are supposed to be accessed by a specific role ( e.g just Administrators ) .

is this sort of caching safe ? is there any security related actions to do when using Data caching ?

هل كانت مفيدة؟

المحلول

The security issues for accessing sensitive data from the Cache are exactly the same as those when accessing sensitive data from any other source, e.g. a database.

You just need to implement the appropriate authorization before exposing it to the user.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top