ASP.NET 2.0 ObjectDataSource caching

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to manually expire the cache for an objectdatasource?
 
Thanks for the reply. That is helpful in knowning it doesn't support a clear.
The only thing is I want to clear the cache only for a particular
objectdatasource and since the way the datasource caches the data is hidden
from you I wouldn't be sure what entry to clear.
Of course I could figure it out and hard code it assuming it doesn't use any
random numbering/naming for the cache key.

Thanks again.
 
I'm going to answer my own question.
The way to manually expire the cache is to use the CacheKeyDependency
property of the datasource.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top