c# - Cache: expire data when table data changes -


Is there a way to store this data on the client side in the cache and eliminate the data from the cache, when only two Updated / Rows of tables? I need to load the menu with the correct permissions from the database, when no permission is changed On the current implementation, menu item loads from the database in the tree weigh each time the page loads.

So is there a direct way to accomplish this? Because I can not use sliding ending and complete termination because I do not know when the administrator will change user's rights.

Regards

Yes, there is a way to do this. This is called SQL cache dependency and the whole technique is included rather.

Great tutorial on the same topic.


Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -