﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - CacheKeyDependency</title><link>http://www.intersoftsolutions.com/Community/Tags/CacheKeyDependency/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>ISDataSource CacheKeyDependency does not work</title><link>http://www.intersoftsolutions.com/Community/Tags/CacheKeyDependency/</link><pubDate>Wed, 02 Sep 2009 11:15:21 GMT</pubDate><dc:creator>mariusz.kopera@gmail.com</dc:creator><category>ISDataSource</category><category>cache</category><category>CacheKeyDependency</category><description>&lt;p&gt;I have defined ISDataSource table with &lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; color: rgb(76, 76, 76); white-space: pre; "&gt;CacheKeyDependency&amp;nbsp; &lt;b&gt;attachement1.png&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;On page load I created cache &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;    Cache.Insert("CacheKey",DateTime.Now);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;ISDataSource. CacheKeyDependency is set to "CacheKey"&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;b&gt;After changing cache under "CacheKey",  ISDataSource cache should be invalidated, but it didn't happen.&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;I've noticed that cache collection contain 3 positions connected with this case&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;p&gt;Key=CacheKey, &amp;nbsp; Value=02-09-2009 17:05:23&amp;nbsp;&lt;/p&gt;&lt;p&gt;Key=uCacheKey:PODMIOT:3600:Sliding:Hahs2TableAdapters.PODMIOTTableAdapter:GetData, &amp;nbsp; Value=2&amp;nbsp;&lt;/p&gt;&lt;p&gt;Key=uCacheKey:PODMIOT:3600:Sliding:Hahs2TableAdapters.PODMIOTTableAdapter:GetData:0:0, &amp;nbsp; Value=PODMIOT&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;This works fine if I use sqlDataSource or ObjectDataSource instead of ISDataSource.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;Please, Could you send me some example how to use ISDataSource CacheKeyDependency in this case.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class="Apple-style-span" style="color: rgb(76, 76, 76); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>