Cache invalidate when creating a folder in app root directory

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
 
G

Guest

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
 
K

Khafancoder

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 ??
 
B

bruce barker

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)
 
K

Khafancoder

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 -
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top