Commit Graph
69 Commits
Author SHA1 Message Date
Marek Habersack 48f1e8a2c7 Implemented a few missing or not implemented methods
svn path=/trunk/mcs/; revision=68696
2006-11-29 20:49:01 +00:00
Marek Habersack 414665828f a minor code optimization
svn path=/trunk/mcs/; revision=68445
2006-11-24 23:55:30 +00:00
Konstantin Triger 4b3c4a07c7 add TARGET_JVM ifdef
svn path=/trunk/mcs/; revision=67919
2006-11-15 13:17:43 +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 89f3305910 2006-11-14 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs:
	* AggregateCacheDependency.cs: implement this one.


svn path=/trunk/mcs/; revision=67856
2006-11-14 17:35:27 +00:00
Andrew Skiba 9d6b8f8be9 ifdef TARGET_JVM
svn path=/trunk/mcs/; revision=65234
2006-09-11 15:07:26 +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
Robert Jordan 15d8fd2d68 2006-03-18 Robert Jordan <[email protected]>
* OutputCacheModule.cs: invoke the validation callbacks of
	HttpCachePolicy. Fixes bug #77825.


svn path=/trunk/mcs/; revision=58153
2006-03-19 15:15:15 +00:00
Robert Jordan d04249b7db 2006-03-14 Robert Jordan <[email protected]>
* CachedVaryBy.cs: Fixed VaryByParam="*". Replaced request.Param
	with QueryString and Form lookups. Made the param name output case
	insensitive. Fixes bug #77757.


svn path=/trunk/mcs/; revision=57935
2006-03-14 01:12:34 +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
Eyal Alalouf 986fb9c7d2 Fixes for Grasshopper compilation
svn path=/trunk/mcs/; revision=49693
2005-09-08 12:56:45 +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
Eyal Alalouf b4cf914e5a TARGET_J2EE/JVM fixes
svn path=/trunk/mcs/; revision=49261
2005-09-01 11:54:56 +00:00
Jackson Harper 0238e283cc Add
svn path=/trunk/mcs/; revision=48946
2005-08-26 23:01:10 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +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
Eyal Alalouf deb8b8184d Removed unused member in ExpiresBuckets.cs.
svn path=/trunk/mcs/; revision=47645
2005-07-25 13:46:01 +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
Ilya Kharmatsky a9392bc994 svn path=/trunk/mcs/; revision=46207 2005-06-19 09:24:53 +00:00
Gonzalo Paniagua Javier a0a8ef2c69 2005-05-09 Gonzalo Paniagua Javier <[email protected]>
* CacheEntry.cs: credits for this patch should go to mcs. it catched
	that the code after 'if ((_enumFlags & Flags.Removed) != 0)' was
	unreachable.


svn path=/trunk/mcs/; revision=44309
2005-05-10 00:57:15 +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
Gonzalo Paniagua Javier 495efe763d 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs: remove warnings.


svn path=/trunk/mcs/; revision=43359
2005-04-20 22:17:06 +00:00
Gonzalo Paniagua Javier f6e7d44f71 2005-04-01 Gonzalo Paniagua Javier <[email protected]>
* CachedVaryBy.cs: fixed VaryByParam and wildcard (*). Patch by Ilya
	Kharmatsky (Mainsoft) that fixes bug #73981.


svn path=/trunk/mcs/; revision=42486
2005-04-02 00:27:36 +00:00
Lluis Sanchez 99eb13d668 2005-04-01 Lluis Sanchez Gual <[email protected]>
* CachedRawResponse.cs: Fix warning.


svn path=/trunk/mcs/; revision=42467
2005-04-01 17:28:43 +00:00
Marek Safar 47bb6c3b60 removed unused variable
svn path=/trunk/mcs/; revision=36775
2004-11-29 12:52:00 +00:00
Gonzalo Paniagua Javier c18c7f35ba 2004-11-08 Gonzalo Paniagua Javier <[email protected]>
* CacheEntry.cs: convert the external DateTime to GMT, as everything
	else uses that timezone. Fixes bug #69194.

svn path=/trunk/mcs/; revision=35865
2004-11-08 22:36:42 +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 73613bd9ea Sorry Sorry Sorry
svn path=/trunk/mcs/; revision=28265
2004-05-27 13:41:52 +00:00
Patrik Torstensson 4ea1031684 2004-05-27 Patrik Torstensson <[email protected]>
* ExpiresBucket.cs (FlushExpiredItems): fix csc and a typo bug

svn path=/trunk/mcs/; revision=28264
2004-05-27 13:34:30 +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
Patrik Torstensson d814897206 2004-05-16 Patrik Torstensson <[email protected]>
* ExpiresBucket.cs: Style changes plus;
	(Update): Fixed possible lock bug (bug 54531)
	(Expand): remove lock optimization due to it can cause newly
	added items to be lost.
	(Remove): fixed possible lock bug.

svn path=/trunk/mcs/; revision=27480
2004-05-16 14:43:49 +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
Gonzalo Paniagua Javier 8def85bdc8 2004-03-19 Gonzalo Paniagua Javier <[email protected]>
* Watcher.cs: Removed file. Jackson made it obsolete and already
	removed it from the .sources file.

svn path=/trunk/mcs/; revision=24359
2004-03-19 23:00:41 +00:00
Jackson Harper 99d45005c5 * ExpiresBucket.cs: Remove duplicate code. Fixes bug #54031.
svn path=/trunk/mcs/; revision=22927
2004-02-09 22:23:02 +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 382c67e69b * CacheDependency.cs: Handle cache keys that have not been added
to the cache yet.

svn path=/trunk/mcs/; revision=22809
2004-02-05 20:54:22 +00:00
Jackson Harper 27e2382a32 * OutputCacheModule.cs: We can use file dependancies now.
svn path=/trunk/mcs/; revision=22723
2004-02-02 22:32:36 +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 8502e8ea49 * OutputCacheModule.cs: Remove varyby objects when there are no
more raw responses that belong to them.
	* CachedRawResponse.cs: Keep a reference to the VaryBy object that
	this response belongs to this is so the varyby can be cleaned up.
	* CachedVaryBy.cs: Keep a reference to the keys that belong to the
	varyby and a reference to the varyby's key.

svn path=/trunk/mcs/; revision=21966
2004-01-12 03:01:48 +00:00
Jackson Harper 1c703c45ac * OutputCacheModule.cs: Remove varyby objects when there are no
more raw responses that belong to them.
	* CachedRawResponse.cs: Keep a reference to the VaryBy object that
	this response belongs to this is so the varyby can be cleaned up.
	* CachedVaryBy.cs: Keep a reference to the keys that belong to the
	varyby and a reference to the varyby's key.

svn path=/trunk/mcs/; revision=21965
2004-01-12 02:58:21 +00:00
Jackson Harper fe11fbe774 * OutputCacheModule.cs: Dont cache items when trace is enabled.
svn path=/trunk/mcs/; revision=21702
2004-01-05 05:21:09 +00:00
Jackson Harper d3895b8c75 * OutputCacheModule.cs: Update the date header value.
* CachedRawResponse.cs: Expose a ref to the date header, so it can
	be easily set/updated. Remove unused methods and vars.

svn path=/trunk/mcs/; revision=21700
2004-01-05 04:10:55 +00:00
Jackson Harper 46d769c5a8 * OutputCacheModule.cs: Make raw repsonse entries dependent on
their varyby param entries.

svn path=/trunk/mcs/; revision=21694
2004-01-05 01:54:54 +00:00