Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top