Explorar o código

* DataSourceCacheManager.cs: fixed SetCachedObject. fixed sliding expiration timespan

svn path=/trunk/mcs/; revision=92087
Vladimir Krasnov %!s(int64=18) %!d(string=hai) anos
pai
achega
33bfe8a121

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2008-01-01  Vladimir Krasnov  <[email protected]>
+
+	* DataSourceCacheManager.cs: fixed SetCachedObject. fixed sliding
+	expiration timespan
+
 2007-12-31  Vladimir Krasnov  <[email protected]>
 
 	* DataSourceCacheManager.cs: fixed SetCachedObject, fixed

+ 1 - 1
mcs/class/System.Web/System.Web.UI.WebControls/DataSourceCacheManager.cs

@@ -88,7 +88,7 @@ namespace System.Web.UI.WebControls
 				if (cacheExpirationPolicy == DataSourceCacheExpiry.Absolute)
 					absoluteExpiration = DateTime.Now.AddSeconds (cacheDuration);
 				else
-					slidindExpiraion = new TimeSpan (cacheDuration * 10000);
+					slidindExpiraion = new TimeSpan (0, 0, cacheDuration);
 			}
 
 			string [] dependencies;