473,503 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

caching too much

A
Hello

I have a caching problem : my WebService is using a DB.
I'm doing changes in the DB and they are not reflected in the result of the
Web method.
After like 30min, restarting IIS many times .... without touching the code,
the changes appear in the result of the Web method.

I try to add [WebMethod(BufferResponse=isBuffering)] but it keeps the same
data...

Thank you,
Alina
Nov 23 '05 #1
3 1639
Can you post the attributes or the headers of the web method?
what does this method do? the error might be in your code.
Thanks
Deepak
"A" wrote:
Hello

I have a caching problem : my WebService is using a DB.
I'm doing changes in the DB and they are not reflected in the result of the
Web method.
After like 30min, restarting IIS many times .... without touching the code,
the changes appear in the result of the Web method.

I try to add [WebMethod(BufferResponse=isBuffering)] but it keeps the same
data...

Thank you,
Alina

Nov 23 '05 #2
A
Hi
Here is my header
[WebMethod( CacheDuration = 5,
BufferResponse = false,
Description="Check if the user is in the role")]

If I do the change in the DB, then check the result of the WebService I
don't see the change. If I reboot my PC and then check the result of the
WebService I see the change.
So it must be a setting.
Thank you,
Alina

"Deepak" <De****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
Can you post the attributes or the headers of the web method?
what does this method do? the error might be in your code.
Thanks
Deepak
"A" wrote:
Hello

I have a caching problem : my WebService is using a DB.
I'm doing changes in the DB and they are not reflected in the result of
the
Web method.
After like 30min, restarting IIS many times .... without touching the
code,
the changes appear in the result of the Web method.

I try to add [WebMethod(BufferResponse=isBuffering)] but it keeps the
same
data...

Thank you,
Alina

Nov 23 '05 #3
Hello
Remove the attribute CacheDuration =5 in your code and see the results.
Let me know why u need CacheDuration in your web method

"A" wrote:
Hi
Here is my header
[WebMethod( CacheDuration = 5,
BufferResponse = false,
Description="Check if the user is in the role")]

If I do the change in the DB, then check the result of the WebService I
don't see the change. If I reboot my PC and then check the result of the
WebService I see the change.
So it must be a setting.
Thank you,
Alina

"Deepak" <De****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
Can you post the attributes or the headers of the web method?
what does this method do? the error might be in your code.
Thanks
Deepak
"A" wrote:
Hello

I have a caching problem : my WebService is using a DB.
I'm doing changes in the DB and they are not reflected in the result of
the
Web method.
After like 30min, restarting IIS many times .... without touching the
code,
the changes appear in the result of the Web method.

I try to add [WebMethod(BufferResponse=isBuffering)] but it keeps the
same
data...

Thank you,
Alina


Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3388
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
6
1892
by: Hypo | last post by:
Im relatilvly new to a web programming in general, and here's the situation i have: I have a default page with dynamic content, and one button with onclick code something like this: { // do...
0
2116
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
5
7828
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
4
3450
by: Fred Nelson | last post by:
Hi: This is probably a newby question however I can't figure it out! I'm trying to use application data caching in a web application. I have read an article on 4 guys from rolla that shows...
5
1997
by: ask ksa | last post by:
hi, is anybody familiar with production-ready distributed/clustered cache solution for .net ? Google helped me to found some (like ncache and scale-out-state-server), but they are over-priced ...
2
1990
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here:...
3
1960
by: Gary W. Smith | last post by:
I had a couple questions about data caching. We have a site that gets a huge amount of traffic to a few specific pages that have a lot of data on them (300k hits/hour during peak, about 6-10 data...
2
4278
by: mark4asp | last post by:
Can I force the client to stop caching old stylesheets and javascript? In my dynamic web-site, I need to force the client to stop caching old versions of my stylesheets and javascript. Can I do...
14
1756
by: Rowan | last post by:
What is the best approach to caching database results. example say i'm doign an update on several entries which i've loaded into an array. I want to allow the user to click through and up date each...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.