문제

Is it a way to store data in Cache on Client side and expire data from cache only when rows from two tables are updated/inserted? I need to load menu with the right permissions from the database only when a permission is changes. On the current implementation, the menu items are loaded from database in a TreeView every time the page loads.

So is there a straight way to accomplish this? Because I can't use Sliding Expiration and Absolute Expiration because I don't know when the Admin will change the user rights.

Regards

도움이 되었습니까?

해결책

Yes, there's a way to do this. It's called SQL Cache Dependecy and the whole technique is rather involved. Take a look at this very detailed tutorial.

Here's another fairly good tutorial on the same topic.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top