Cache dependency based on file folder?

K

Keithb

Is there any way to create a cache dependency based on a folder in the
server file system? My application needs to drop a table in the cache if any
files are changed in a server file folder or its subfolders.

Thanks,

Keith
 
K

Karl Seguin [MVP]

I'm pretty sure that the DirectoryMonitor the CacheDependency class is not
recursive.

If I'm right, the only solution is to pass in an array of folder names to
the CacheDependency class ...ugh...

It's a pretty easy test to find out for sure though.

Add an item to the cache with a dependency on c:\test\

and add a file to c:\test\sub\

and see if the cache is dumped..


Karl
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top