Cache dependency based on file folder?

Discussion in 'ASP .Net' started by Keithb, Oct 3, 2006.

  1. Keithb

    Keithb Guest

    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.


    Keithb, Oct 3, 2006
    1. Advertisements

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

    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 Seguin [MVP], Oct 4, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.