ISDataSource CacheKeyDependency does not work

6 replies. Last post: September 8, 2009 12:25 PM by Product Support
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I have defined ISDataSource table with CacheKeyDependency  attachement1.png

On page load I created cache

Cache.Insert("CacheKey",DateTime.Now);


ISDataSource. CacheKeyDependency is set to "CacheKey"

After changing cache under "CacheKey", ISDataSource cache should be invalidated, but it didn't happen.


I've noticed that cache collection contain 3 positions connected with this case

Key=CacheKey,   Value=02-09-2009 17:05:23 

Key=uCacheKey:PODMIOT:3600:Sliding:Hahs2TableAdapters.PODMIOTTableAdapter:GetData,   Value=2 

Key=uCacheKey:PODMIOT:3600:Sliding:Hahs2TableAdapters.PODMIOTTableAdapter:GetData:0:0,   Value=PODMIOT 


This works fine if I use sqlDataSource or ObjectDataSource instead of ISDataSource.


Please, Could you send me some example how to use ISDataSource CacheKeyDependency in this case.





1 attachment
All times are GMT -5. The time now is 3:36 AM.
Previous Next