I have a WS that queries a SDE geodatabase every 30 seconds. The problem is that it does not pick up any new entries into the geodatabase after the first time it queries it. For example:
1. Program starts and first query is executed. 5 rows returned.
2. A row is added to the geodatabase.
3. The second query still returns 5 rows.
4. Go To step 2
The reason I believe it has something to do with caching is because I took the exact same code and placed it as a class inside my project and once the row is added, the second query immediately returns 6. I am using the WS because it provides a convenient
Async method and there is some code I want to execute if the WS call returns "true" for increase in row count.
kgbshnik
Member
290 Points
57 Posts
Web Service Cache(?)
Feb 21, 2013 08:36 PM|LINK
I have a WS that queries a SDE geodatabase every 30 seconds. The problem is that it does not pick up any new entries into the geodatabase after the first time it queries it. For example:
1. Program starts and first query is executed. 5 rows returned.
2. A row is added to the geodatabase.
3. The second query still returns 5 rows.
4. Go To step 2
The reason I believe it has something to do with caching is because I took the exact same code and placed it as a class inside my project and once the row is added, the second query immediately returns 6. I am using the WS because it provides a convenient Async method and there is some code I want to execute if the WS call returns "true" for increase in row count.
I have set my WS method to
and in the web config of the WS I have placed
<system.web> <caching> <cache disableExpiration="false" privateBytesLimit="0"/> </caching> ...I am using VS 2005, .NET 2.0.
Has anyone experienced anything similar / know how to fix it?
Thanks,
Nico_He
Member
114 Points
27 Posts
Re: Web Service Cache(?)
Mar 01, 2013 07:52 AM|LINK
Refer: http://msdn.microsoft.com/en-us/library/aa480499.aspx
Hope helps.
kgbshnik
Member
290 Points
57 Posts
Re: Web Service Cache(?)
Mar 01, 2013 09:36 PM|LINK