473,651 Members | 3,068 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(Buffe rResponse=isBuf fering)] but it keeps the same
data...

Thank you,
Alina
Nov 23 '05 #1
3 1649
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(Buffe rResponse=isBuf fering)] 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="Ch eck 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****@discuss ions.microsoft. com> wrote in message
news:E2******** *************** ***********@mic rosoft.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(Buffe rResponse=isBuf fering)] 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="Ch eck 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****@discuss ions.microsoft. com> wrote in message
news:E2******** *************** ***********@mic rosoft.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(Buffe rResponse=isBuf fering)] 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
3410
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 server database. In my main form I have an Access-combobox with Customer-names from my customer table. In this combo-box are about 2000 records.
6
1905
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 some processing... Serever.Transfer("second_page.aspx"); // or Response.Redirect("second_page.aspx"); same in
0
2131
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. After looking at the use of the OutputCache directive and tinkering with it a bit I found its usability.very limited. Think of it: it is okay for static content. Well that's nice but no big deal. Static content is cheap anyway, the file system...
5
7846
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), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable suggestions. Is it safe to turn off filesystem caching on every tablespaceon the server(i.e. DIO) ??...
4
3464
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 the following syntax: Write: Cache = value;
5
2017
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 thanks anyway for your time reading that
2
1996
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: http://www.eggheadcafe.com/articles/20060407.asp First I run the aspnet_regsql tool on the command line succesfully to enable the database for cache notification: aspnet_regsql -S -E -d -ed
3
1973
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 calls per page OR 500 SQL calls per second). Most of the data doesn't change more than once ever 10 minutes. Basically they are data islands with specific content. We have already implemented a singleton that manages a connection pool. This...
2
4304
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 this by including a querystring with the url with each external stylesheet and script file declaration? For example: <link type="text/css" rel="stylesheet" href="../images/menu.css?
14
1785
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 array entry then dump everythign to the db once they are done...
0
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8584
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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 we have to send another system
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.