Cache invalidate when creating a folder in app root directory

  • Thread starter Thread starter Khafancoder
  • Start date Start date
K

Khafancoder

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
 
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
 
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 ??
 
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)
 
Thank you bruce, i will try it.



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)







- Show quoted text -
 
Back
Top