IIS ASP - ADSI caching in ASP

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > June 2004 > ADSI caching in ASP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ADSI caching in ASP
Ryan Ritten

2004-06-29, 5:55 pm

I was wondering if anyone knew how (or if it's even possible) to cache
the results of an ADSI call in asp for a longer period of time.

Basically what I am doing is I have a website that loads the 'full
name' of the user that logs into it. Once the user full nam ehas been
retreived (using adsi) the user can reload the page and it appears to
just check a cached version of the request (since the page loads very
fast). If however the user waits a bit longer (maybe 5 min) and
reloads the page it will take upto 4 secs to load the page (since the
adsi call is being resubmitted).

Is there anyway to increase the length of time that adsi info is
cached?

Thanx!

Ryan R
Ray at

2004-06-30, 8:52 pm

How about just putting it in a session variable instead of relying on the AD
cache's speed?

How big is your AD that it takes that long to retreive the data? I mean, 4
seconds isn't 4 years or anything, but when I call data from the AD, it
doesn't add any noticeable time. But, the AD I work with contains about
3000 objects in 50 OUs.

Ray at home

"Ryan Ritten" <sparticusREMOVE@thesparticusarena.com> wrote in message
news:f4d27a4f.0406291232.37bfc1ad@posting.google.com...
> I was wondering if anyone knew how (or if it's even possible) to cache
> the results of an ADSI call in asp for a longer period of time.
>
> Basically what I am doing is I have a website that loads the 'full
> name' of the user that logs into it. Once the user full nam ehas been
> retreived (using adsi) the user can reload the page and it appears to
> just check a cached version of the request (since the page loads very
> fast). If however the user waits a bit longer (maybe 5 min) and
> reloads the page it will take upto 4 secs to load the page (since the
> adsi call is being resubmitted).
>
> Is there anyway to increase the length of time that adsi info is
> cached?
>
> Thanx!
>
> Ryan R



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com