Browse Source

2008-09-26 Juraj Skripsky <[email protected]>

	* OutputCacheModule.cs: Consistently use InternalCache for
	CachedRawResponse items and Cache for CachedVaryBy items.
	Partial fix for bug #429926.

svn path=/trunk/mcs/; revision=114189
Juraj Skripsky 17 năm trước cách đây
mục cha
commit
063fbcfbbd

+ 6 - 0
mcs/class/System.Web/System.Web.Caching/ChangeLog

@@ -1,3 +1,9 @@
+2008-09-26  Juraj Skripsky  <[email protected]>
+
+	* OutputCacheModule.cs: Consistently use InternalCache for
+	CachedRawResponse items and Cache for CachedVaryBy items.
+	Partial fix for bug #429926.   
+
 2008-08-11  Marek Habersack  <[email protected]>
 2008-08-11  Marek Habersack  <[email protected]>
 
 
 	* Cache.cs: dispose item timer when removing an entry. Fixes bug
 	* Cache.cs: dispose item timer when removing an entry. Fixes bug

+ 3 - 3
mcs/class/System.Web/System.Web.Caching/OutputCacheModule.cs

@@ -70,7 +70,7 @@ namespace System.Web.Caching {
 				return;
 				return;
 
 
 			key = varyby.CreateKey (vary_key, context);
 			key = varyby.CreateKey (vary_key, context);
-			c = context.Cache [key] as CachedRawResponse;
+			c = context.InternalCache [key] as CachedRawResponse;
 
 
 			if (c == null)
 			if (c == null)
 				return;
 				return;
@@ -145,7 +145,7 @@ namespace System.Web.Caching {
 				string [] files = new string [] { path };
 				string [] files = new string [] { path };
 				string [] keys = new string [0];
 				string [] keys = new string [0];
 				varyby = new CachedVaryBy (context.Response.Cache, vary_key);
 				varyby = new CachedVaryBy (context.Response.Cache, vary_key);
-				context.InternalCache.Insert (vary_key, varyby,
+				context.Cache.Insert (vary_key, varyby,
 							      new CacheDependency (files, keys),
 							      new CacheDependency (files, keys),
 							      Cache.NoAbsoluteExpiration,
 							      Cache.NoAbsoluteExpiration,
 							      Cache.NoSlidingExpiration,
 							      Cache.NoSlidingExpiration,
@@ -156,7 +156,7 @@ namespace System.Web.Caching {
 			key = varyby.CreateKey (vary_key, context);
 			key = varyby.CreateKey (vary_key, context);
 
 
 			if (lookup)
 			if (lookup)
-				prev = context.Cache [key] as CachedRawResponse;
+				prev = context.InternalCache [key] as CachedRawResponse;
 			
 			
 			if (prev == null) {
 			if (prev == null) {
 				CachedRawResponse c = context.Response.GetCachedResponse ();
 				CachedRawResponse c = context.Response.GetCachedResponse ();