<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Caching Question</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Caching Question</description>
  <pubDate>Mon, 13 Apr 2026 22:52:08 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 15:17:46 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=194</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Caching Question : I suspect that what is going on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=194&amp;PID=427#427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 194<br /><strong>Posted:</strong> 12-Jul-2007 at 3:17pm<br /><br /><DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=3><SPAN =652560423-23032007>I suspect that what is going on here is that the query you are using has been cached.&nbsp; When you make the query after you have modified the database (presumably by doing something like opening up SQL Server Management Studio and manually adding a new row), the PersistenceManager sees your query in the query cache and gets the items from the PersistenceManager cache.</SPAN></FONT></DIV><DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN =652560423-23032007></SPAN></FONT><FONT size=3>&nbsp;</FONT></DIV><DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=3><SPAN =652560423-23032007>If you want to see the new changes, you should use a QueryStrategy of DataSourceOnly, that will override the fact that the query is in the QueryCache.</SPAN></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 15:17:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=194&amp;PID=427#427</guid>
  </item> 
  <item>
   <title>Caching Question : I&#8217;m finally getting to the point...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=194&amp;PID=426#426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 194<br /><strong>Posted:</strong> 12-Jul-2007 at 3:17pm<br /><br /><SPAN =652560423-23032007>I’m finally getting to the point that some basic testing is occurring on some of the UI code we have been creating.&nbsp; During this testing, I’m finding something I guess I just don’t understand and am curious of what the best practice should be for caching.<P =Ms&#111;normal>Scenario:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P><P =Ms&#111;normal>I have list of items in the query cache for specific query, I may update this list or just view it.&nbsp; While I’m on this UI, I go to the DB and say add, update or delete a row.&nbsp; Let’s say I add one that should appear on this list the next time I query the data base.&nbsp; I use the normal query strategy, and after I refresh by calling the same query, the new row never appears until I shutdown the app and re-load it.&nbsp; Obviously, I’m missing something here.&nbsp; I assume using the database query strategy that my cache is always refreshed directly from the backend and that would solve it but then I wouldn’t get a benefit of the caching?&nbsp; Can you tell me how this should be done in the real world to offer the best performance and accuracy?</P></SPAN>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 15:17:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=194&amp;PID=426#426</guid>
  </item> 
 </channel>
</rss>