Cache invalidate when creating a folder in app root directory

Discussion in 'ASP .Net' started by Khafancoder, Jul 3, 2007.

  1. Khafancoder

    Khafancoder Guest

    Hi guys,

    i keep many items in cache such as onlineusers and ...
    recently i build a page which create tempfolders in webapplication
    root dir
    but i findout that it invalidate cache and i hadn't use of any
    CacheDependency at all ...

    what's the problem ?

    thanks in advance
     
    Khafancoder, Jul 3, 2007
    #1
    1. Advertising

  2. There is no problem. The behavior is by design. ASP.NET monitors the web site
    root, files, subfolders and bin folder for changes. When something is
    changed, the application recycles. That's what is "invalidating your cache".
    You can consider creating your "tempfolders" outside of the application root,
    or consider using a different approach to whatever it is you need to do.
    -- Peter
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder(BETA): http://www.blogmetafinder.com



    "Khafancoder" wrote:

    > Hi guys,
    >
    > i keep many items in cache such as onlineusers and ...
    > recently i build a page which create tempfolders in webapplication
    > root dir
    > but i findout that it invalidate cache and i hadn't use of any
    > CacheDependency at all ...
    >
    > what's the problem ?
    >
    > thanks in advance
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Jul 3, 2007
    #2
    1. Advertising

  3. Khafancoder

    Khafancoder Guest

    Re: Cache invalidate when creating a folder in app root directory

    Thanks,
    so you mean i can't create a temp folder at all ??
    you know...maybe i could create temp folder outside of the application
    root in local , but what abt share servers ?

    i need to create tempfolder for extracing uploaded archive file on the
    server

    isn't any option to disable this behavior ??


    On Jul 3, 10:56 pm, Peter Bromberg [C# MVP]
    <> wrote:
    > There is no problem. The behavior is by design. ASP.NET monitors the web site
    > root, files, subfolders and bin folder for changes. When something is
    > changed, the application recycles. That's what is "invalidating your cache".
    > You can consider creating your "tempfolders" outside of the application root,
    > or consider using a different approach to whatever it is you need to do.
    > -- Peter
    > Site: http://www.eggheadcafe.com
    > UnBlog: http://petesbloggerama.blogspot.com
    > BlogMetaFinder(BETA): http://www.blogmetafinder.com
    >
    >
    >
    > "Khafancoder" wrote:
    > > Hi guys,

    >
    > > i keep many items in cache such as onlineusers and ...
    > > recently i build a page which create tempfolders in webapplication
    > > root dir
    > > but i findout that it invalidate cache and i hadn't use of any
    > > CacheDependency at all ...

    >
    > > what's the problem ?

    >
    > > thanks in advance- Hide quoted text -

    >
    > - Show quoted text -
     
    Khafancoder, Jul 3, 2007
    #3
  4. Khafancoder

    bruce barker Guest

    create a data folder for the site. you can create a temp under the data
    (or just use the data folder). files in this folder are not monitored.

    -- bruce (sqlwork.com)

    Khafancoder wrote:
    > Hi guys,
    >
    > i keep many items in cache such as onlineusers and ...
    > recently i build a page which create tempfolders in webapplication
    > root dir
    > but i findout that it invalidate cache and i hadn't use of any
    > CacheDependency at all ...
    >
    > what's the problem ?
    >
    > thanks in advance
    >
     
    bruce barker, Jul 3, 2007
    #4
  5. Khafancoder

    Khafancoder Guest

    Re: Cache invalidate when creating a folder in app root directory

    Thank you bruce, i will try it.



    On Jul 4, 1:32 am, bruce barker <> wrote:
    > create a data folder for the site. you can create a temp under the data
    > (or just use the data folder). files in this folder are not monitored.
    >
    > -- bruce (sqlwork.com)
    >
    >
    >
    > Khafancoder wrote:
    > > Hi guys,

    >
    > > i keep many items in cache such as onlineusers and ...
    > > recently i build a page which create tempfolders in webapplication
    > > root dir
    > > but i findout that it invalidate cache and i hadn't use of any
    > > CacheDependency at all ...

    >
    > > what's the problem ?

    >
    > > thanks in advance- Hide quoted text -

    >
    > - Show quoted text -
     
    Khafancoder, Jul 4, 2007
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Maz
    Replies:
    12
    Views:
    4,782
    Vadim Chekan
    Jul 1, 2004
  2. ~~~ .NET Ed ~~~

    How to invalidate the cache...

    ~~~ .NET Ed ~~~, Nov 3, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    366
    ~~~ .NET Ed ~~~
    Nov 3, 2004
  3. Weaver
    Replies:
    0
    Views:
    739
    Weaver
    Jan 18, 2006
  4. the4man

    How to invalidate cache?

    the4man, Feb 18, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    the4man
    Feb 18, 2006
  5. Replies:
    1
    Views:
    601
    Steve Holden
    Apr 30, 2005
Loading...

Share This Page