Commit Graph
28 Commits
Author SHA1 Message Date
Juraj Skripsky 724c547041 2007-06-25 Juraj Skripsky <[email protected]>
* Cache.cs: Re-introduce "InvokePrivateCallbacks" accidentally
	removed in r80321.

2007-06-25 Juraj Skripsky <[email protected]>

	* HttpRuntime.cs (ShutdownAppDomain): Re-introduce call to
	"Cache.InvokePrivateCallbacks".


svn path=/trunk/mcs/; revision=80696
2007-06-25 17:11:48 +00:00
Marek Habersack 56c3bddbe6 2007-06-20 Marek Habersack <[email protected]>
* Cache.cs: Iterate over the entries when filling the ArrayList in the 2.0
	profile to avoid type cast exceptions.

svn path=/trunk/mcs/; revision=80340
2007-06-20 17:25:25 +00:00
Marek Habersack 0b80ac0b50 2007-06-20 Marek Habersack <[email protected]>
* OutputCacheModule.cs: use Context.InternalCache.

	* Cache.cs: 2.0 profile uses generic containers to keep the cache
	entries.
	Gotten rid of the InsertPrivate and InsertInternal methods. The
	latter was moved to one of the Insert overloads.
	Private entries are no longer handled specifically, because the
	internal cache is now kept in a separate object.

2007-06-20  Marek Habersack  <[email protected]>

	* AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
	private entries.
	* CachingCompiler.cs: as above
	* AspGenerator.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* DataSourceCacheManager.cs: use HttpContext.Current.InternalCache
	to keep private entries.
	* XmlDataSource.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	the internal entries.

2007-06-20  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: use HttpRuntime.InternalCache to
	keep the private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: added new internal property, InternalCache, to
	keep all the internal cache entries instead of mixing them with
	the public cache ones.
	Do not invoke Cache.InvokePrivateCallbacks - this method no longer
	exists.

	* HttpResponse.cs: private entries are now kept in
	Context.InternalCache.

	* HttpContext.cs: added new internal property, InternalCache,
	which returns the HttpRuntime.InternalCache value.

Fixes bug #81690


svn path=/trunk/mcs/; revision=80321
2007-06-20 15:42:36 +00:00
Gonzalo Paniagua Javier a5af58e42a 2006-11-14 Marek Habersack <[email protected]>
* Cache.cs:
	* CacheDependency.cs:
	* AggregateCacheDependency.cs: implement this one.


svn path=/trunk/mcs/; revision=67862
2006-11-14 17:44:00 +00:00
Gonzalo Paniagua Javier 0d5ff18ed0 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs:
	* Cache.cs: check dependencies on other cache keys. Fixes bug #79002.


svn path=/trunk/mcs/; revision=63303
2006-08-03 15:50:47 +00:00
Gonzalo Paniagua Javier f6aa6b8f53 2005-10-24 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Caching/Cache.cs: new internal method.
	* System.Web/HttpRuntime.cs: invoke callbacks on private items in the
	cache before calling disposing the app. factory. This way we get
	notifications of removal for all sessions stored in the cache (InProc
	only). Fixes bug #76524.


svn path=/trunk/mcs/; revision=52113
2005-10-24 05:10:05 +00:00
Gonzalo Paniagua Javier df6ad348f6 2005-09-02 Gonzalo Paniagua Javier <[email protected]>
* Cache.cs: ignore exceptions thrown by removed item callbacks.


svn path=/trunk/mcs/; revision=49364
2005-09-02 19:04:56 +00:00
Sebastien Pouliot 96205ff6c0 2005-09-02 Sebastien Pouliot <[email protected]>
* Cache.cs: Added security permissions with Minimal level for
	AspNetHostingPermissionLevel (only LinkDemand as the class is sealed).
	* CacheDependency.cs: : Added security permissions with Minimal level 
	for AspNetHostingPermissionLevel (note class is sealed only in 1.x).



svn path=/trunk/mcs/; revision=49342
2005-09-02 13:29:54 +00:00
Lluis Sanchez 96d5d0dd77 2005-07-15 Lluis Sanchez Gual <[email protected]>
* Cache.cs: New implementation.
	* CacheDependency.cs: New implementation.

2005-08-26  Lluis Sanchez Gual  <[email protected]> 

	* CssStyleCollection.cs: Added some spacing.
	* HtmlTextWriter.cs: Made style and attribute tables static.
	  Implemented StaticGetStyleName().

2005-08-26  Lluis Sanchez Gual  <[email protected]> 

	* Style.cs: Implemented FillStyleAttributes, GetStyleAttributes and
	SetDirty.

svn path=/trunk/mcs/; revision=48924
2005-08-26 22:29:51 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Eyal Alalouf cc09709c26 Destroy cahce in HttpRuntime.Dispose for TARGET_J2EE.
svn path=/trunk/mcs/; revision=47712
2005-07-26 16:33:04 +00:00
Gonzalo Paniagua Javier 3eb5ecafd7 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* Cache.cs: added new InsertPrivate overload.


svn path=/trunk/mcs/; revision=46507
2005-06-25 20:46:31 +00:00
Gonzalo Paniagua Javier a6e0d6f12b 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* Cache.cs: 
	* CacheEntry.cs: style. Removed doc. comments.


svn path=/trunk/mcs/; revision=46502
2005-06-25 19:23:08 +00:00
Gonzalo Paniagua Javier 35c816ff29 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
* ExpiresBuckets.cs:
	* Cache.cs:
	* CacheExpires.cs: fix NullReferenceException thrown sometimes when
	using sliding expiration and under high load. Patch by Eyal Alayuf from
	Mainsoft.


svn path=/trunk/mcs/; revision=43705
2005-04-28 04:01:16 +00:00
Ben Maurer c06c79073a 2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
	use UtcNow rather than Now.

svn path=/trunk/mcs/; revision=34640
2004-10-03 21:55:41 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Patrik Torstensson a596fe4999 2004-05-27 Patrik Torstensson <[email protected]>
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
	  Cache.cs : Fixed deadlock issues, fixed
	  items not correctly being flushed, fixed update
	  of item when expiration has been updated more
	  than 1 min (placed in wrong bucket),
	  fixed deadlock during cache callback when item
	  is removed due to expiriation.

	  Rewrite of locking handling in Cache class, leading
	  to better performance and less bugs.

	  This rewrite is due to a number of bugs found
	  in the output caching during load (leading to memory
	  leaks and deadlocks)

svn path=/trunk/mcs/; revision=28254
2004-05-27 12:15:13 +00:00
Gonzalo Paniagua Javier 876e05bb03 2004-04-16 Gonzalo Paniagua Javier <[email protected]>
* Cache.cs: fix from Jan Jaros for NullRef (bug #56996).

svn path=/trunk/mcs/; revision=25583
2004-04-16 04:51:44 +00:00
Lluis Sanchez c589dd6958 * Cache.cs, CacheEntry.cs, ExpiresBuckets.cs: The value to use to specify
infinite timeout in ReaderWriterLock is -1, not 0.

svn path=/trunk/mcs/; revision=25148
2004-04-07 09:24:25 +00:00
Jackson Harper 80f98b141b * Cache.cs: Close entries that are removed.
* CacheDependency.cs: Use FileSystemWatcher instead of custom
	Watcher for file dependencies.
	* OutputCacheModule.cs: Make the varyby objects dependent on the
	cached page.

svn path=/trunk/mcs/; revision=22924
2004-02-09 22:00:05 +00:00
Jackson Harper ed9721a025 * Cache.cs: Return null when items are expired but have not been
removed yet.
	* OutputCacheModule.cs: Handle sliding expirations. Remove hacks
	checking if the item is expired, the cache no longer returns
	expired items.

svn path=/trunk/mcs/; revision=22103
2004-01-15 06:42:06 +00:00
Jackson Harper e9aae24f7c * Cache.cs: When using sliding expiration update the cache objects
expires time as well as the expires entry expire time because the
	objects expire time is checked when objects are pulled out. This
	fixex bug #52778.

svn path=/trunk/mcs/; revision=22100
2004-01-15 05:18:02 +00:00
Jackson Harper e2a4fa1f17 * Cache.cs: Add method to get CacheEntry objects.
svn path=/trunk/mcs/; revision=21692
2004-01-05 01:40:35 +00:00
Jackson Harper 54d9ed0618 * Cache.cs: New method so non public cache items can be added.
* CachedRawResponse.cs: New file - A snapshot of a response that
	is stored in the cache and can be used to create a new response.
	* OutputCacheModule.cs: Module for inserting and retrieving
	responses from the cache.

svn path=/trunk/mcs/; revision=20272
2003-11-20 11:50:24 +00:00
Gonzalo Paniagua Javier 46059274db 2003-03-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.

	* System.Web/HttpServerUtility.cs: removed MonoTODO.

	* System.Web.Caching/Cache.cs:
	* System.Web.Caching/CacheDefinitions.cs:
	* System.Web.Caching/CacheDependency.cs:
	* System.Web.Caching/CacheEntry.cs:
	* System.Web.Caching/CacheExpires.cs:
	* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
	page happier. Does not work yet (wait for the next patch).

	* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.

	* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
	it work.

svn path=/trunk/mcs/; revision=12480
2003-03-13 19:44:44 +00:00
Gonzalo Paniagua Javier 4b10f5831b Changes by Daniel Cazullino.
2002-12-27  Daniel Cazzulino <[email protected]>

	* CacheEntry.cs: several changes. New constants, use of constants
	defined in Cache.cs, modified locks to optimize perf. Fixed property
	sets which weren't using the keyword value to set the new values
	(don't know how this worked before!).

	* Cache.cs: changed singleton implementation to only create the object
	when actually used. Changed Insert overloads to use constants
	defined instead of hard values.

	* ExpiresBuchets: major changes. All locking now uses ReaderWriterLock
	class. Bucket now efectively reuses free indexes from removed items
	to avoid unnecessary expansions. Expansion now uses Array.CopyTo to
	add elements to the new list. Added private Int32Collection to
	handle int indexes efficiently (thanks Shawn Van Ness). See comments
	there.

svn path=/trunk/mcs/; revision=9985
2002-12-30 16:22:37 +00:00
Gonzalo Paniagua Javier 00cd44e83d 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: use handlers from configuration.
	* System.Web/HttpContext.cs: get handlers from ConfigurationSettings.

	* System.Web.Caching/Cache.cs: little fixes.

	* System.Web.Configuration/HttpHandlerTypeMapper.cs: removed.
	* System.Web.Configuration/HandlerFactoryConfiguration.cs: readded. I
	removed it by mistake.
	* System.Web.Configuration/HandlerItem.cs: only load the type if
	we gotta validate it. Implemented initial IsMatch.
	* System.Web.Configuration/HttpConfigurationContext.cs: New file.
	* System.Web.Configuration/HttpHandlersSectionHandler.cs: validate is
	optional (default true).  Use HttpHandlerTypeMapper.

	* System.Web.UI/SimpleHandlerFactory.cs: new handler for .ashx files.

svn path=/trunk/mcs/; revision=8053
2002-10-08 04:29:52 +00:00
Miguel de Icaza 0a99fb8a57 Wooohooo! System.Web.Cache from Patrick!
svn path=/trunk/mcs/; revision=276
2001-07-20 17:48:40 +00:00