Commit Graph
80 Commits
Author SHA1 Message Date
Marek Habersack 4a3dce4bcd 2009-01-09 Marek Habersack <[email protected]>
* Cache.cs: System.Threading.Timer.Change takes a long, not an
	int. The maximum value of sliding expiration is 365 days
	(31536000000ms) which fits within the value range of long. The
	previous cast to int might yield negative values in certain
	situations which was the reason for bug #464221. Fixes bug #464221

svn path=/trunk/mcs/; revision=122839
2009-01-08 23:50:52 +00:00
Marek Habersack f345ffeea2 2008-10-21 Marek Habersack <[email protected]>
* CapabilitiesChecksum.cs: implement Hex and MapToHex more efficiently.

2008-10-21  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: seal the class.
	Made OnRawResponseRemoved a static method.

	* CachedVaryBy.cs: seal the class.
	Use portable line terminators instead of literal '\n'.

	* Cache.cs: seal the CacheItem and CacheItemEnumerator classes.

	* CacheDependency.cs: dispose the associated dependency in the
	DependencyDispose method.

	* CachedRawResponse.cs: seal the class

2008-10-21  Marek Habersack  <[email protected]>

	* CapabilitiesLoader.cs: seal BrowserData.
	Seal CapabilitiesLoader.
	Do not lock on typeof (CapabilitiesLoader) in GetCapabilities ().

svn path=/trunk/mcs/; revision=116583
2008-10-21 01:08:23 +00:00
Marek Habersack 5b94dd8088 2008-10-15 Marek Habersack <[email protected]>
* HttpResponse.cs: CacheabilityUpdatedEvent is no longer
	used. cached_response is allocated only when the IsCached property
	is assigned the 'true' value. 

	* HttpCachePolicy.cs: CacheabilityUpdatedEvent is no longer used,
	removed all the traces of it. SetCacheability should not switch
	output caching on.

2008-10-15  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: do not take any action if Response returns
	null from GetCachedResponse.

2008-10-15  Marek Habersack  <[email protected]>

	* Page.cs: Response caching is switched on only when output
	caching is configured for this page instance. Fixes bug #435549.

svn path=/trunk/mcs/; revision=115861
2008-10-15 12:31:16 +00:00
Juraj Skripsky c0fa5b39e4 2008-09-30 Juraj Skripsky <[email protected]>
* CachedRawResponse.cs: Don't allocate a 32k buffer that is never 
	used. Fixes enhancement bug #430963.

svn path=/trunk/mcs/; revision=114502
2008-09-30 19:20:35 +00:00
Marek Habersack 45c4d688ac 2008-09-29 Marek Habersack <[email protected]>
* OutputCacheModule.cs: invalidate cache entries when the
	corresponding source file (.as?x) is recompiled by hooking up to
	System.Web.Compilation.BuildManager's build cache entry removal
	event. Fixes bug #429926

2008-09-29  Marek Habersack  <[email protected]>

	* BuildManagerRemoveEntryEventHandler.cs: added

	* BuildManager.cs: added a static event to notify interested
	parties when an entry is removed from the buildCache. Fixes bug
	#429926.

svn path=/trunk/mcs/; revision=114369
2008-09-29 06:53:14 +00:00
Juraj Skripsky 063fbcfbbd 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
2008-09-26 14:56:10 +00:00
Marek Habersack fcb0f8f40b 2008-08-11 Marek Habersack <[email protected]>
Pass onRemoveCallback along in Insert. Fixes bugs #324528 and
	#382644. Patch provided by Juraj Skripsky <[email protected]>,
	thanks!


svn path=/trunk/mcs/; revision=110125
2008-08-11 17:04:51 +00:00
Marek Habersack 3e0838c477 2008-08-11 Marek Habersack <[email protected]>
* Cache.cs: dispose item timer when removing an entry. Fixes bug
	#416076. Patch provided by Adriaan van Kekem
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=110121
2008-08-11 16:13:47 +00:00
Marek Habersack 324596317d 2008-06-18 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added

2008-06-18  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Caching/SqlCacheDependency.cs

2008-06-18  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: implemented the CachePolicy
	property.

	* UserControl.cs: implemented the CachePolicy property.

	* ControlCachePolicy.cs: implemented missing properties and
	methods.

2008-06-18  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: AddChildCall properly processes the
	PartialCachingAttribute now.

svn path=/trunk/mcs/; revision=106078
2008-06-18 01:09:53 +00:00
Marek Habersack 0907975508 2008-05-30 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
	DataControlFieldCollection.cs, DataControlField.cs,
	PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
	event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
	DefaultAuthenticationModule.cs, MembershipProvider.cs,
	WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
	RoleManagerModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
	TraceContext.cs: do not use synthetized event accessors (to avoid
	locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ProfileModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
	use synthetized event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ClientBuildManager.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* CacheDependency.cs: do not use synthetized event accessors (to
	avoid locks).


svn path=/trunk/mcs/; revision=104569
2008-05-30 22:20:14 +00:00
Marek Habersack 8681536fff 2008-05-23 Marek Habersack <[email protected]>
* Cache.cs: optimize lock usage

2008-05-23  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs, RemoteStateServer.cs: update for
	internal API change in System.Web.Caching.Cache.

svn path=/trunk/mcs/; revision=103946
2008-05-23 19:16:43 +00:00
Marek Habersack b92349a289 2008-04-28 Marek Habersack <[email protected]>
* Cache.cs: refactoring - move the timeout setting code to
	separate methods, so that it can be accessed from outside the
	class. Fixes bug #382644

2008-04-28  Marek Habersack  <[email protected]>

	* ISessionHandler.cs: added new method, Touch, to reset the item
	timeout.

	* SessionStateServerHandler.cs, SessionSQLServerHandler.cs,
	SessionInProcHandler.cs: added implementation of the
	ISessionHandler Touch method, to reset item timeout. Fixes bug
	#382644

	* StateServerItem.cs: made the Timeout property writable.

	* SessionStateModule.cs: reset the item timeout after
	OnSessionStart has returned. Fixes bug #382644

	* RemoteStateServer.cs: added a method to reset item timeout.

svn path=/trunk/mcs/; revision=102034
2008-04-28 13:35:02 +00:00
Geoff Norton 1efe2c5419 2008-03-18 Geoff Norton <[email protected]>
* Cache.cs:  MS allows calling Insert in a removed handler, we need to
	avoid double locking here otherwise the Insert will never succeed.


svn path=/trunk/mcs/; revision=98559
2008-03-18 21:15:06 +00:00
Kornél Pál 25c6680c8e Don't add Date header in ASP.NET. Fixes bug #363404.
svn path=/trunk/mcs/; revision=96613
2008-02-26 09:52:01 +00:00
Vladimir Krasnov b91ee13c6b * Cache.cs: added DependencyCache property, a cache object for creating dependencies
* DataSourceCacheManager.cs: fixed SetCachedObject, fixed CacheDependency keys
* HttpRuntime.cs: fixed HttpRuntime, added Cache.DependencyCache initialization

svn path=/trunk/mcs/; revision=92049
2007-12-31 08:57:46 +00:00
Juraj Skripsky 6486fa984c 2007-12-19 Juraj Skripsky <[email protected]>
* Cache.cs: Replace periodic timer (60s) with per-cache-item expiration
	timers.

2007-12-19  Juraj Skripsky <[email protected]>

	* HttpContext.cs, HttpApplication.cs: Move timeout tracking from
	TimeoutManager into HttpContext. Replace periodic timeout checks with
	separate per-context timeout timers.  
	* HttpRuntime.cs: remove TimeoutManager.

2007-12-19  Juraj Skripsky  <[email protected]>

	* System.Web.dll.sources: removed TimeoutManager.cs


svn path=/trunk/mcs/; revision=91612
2007-12-19 11:27:00 +00:00
Marek Habersack f0842083bc 2007-08-17 Marek Habersack <[email protected]>
* CacheDependency.cs: use DependencyChanged as a list of events.
	OnChanged now calls OnDependencyChanged, to notify
	AggregateCacheDependency that it has changed. Fixes bug #82419.

2007-08-17  Marek Habersack  <[email protected]>

	* AggregateCacheDependencyTest.cs: dependency expiration
	notification works correctly now.

svn path=/trunk/mcs/; revision=84270
2007-08-17 12:06:22 +00:00
Marek Habersack 8b73dbcd78 2007-08-14 Marek Habersack <[email protected]>
* AggregateCacheDependency.cs: propagate changes in any child
	dependencies to the base class.

svn path=/trunk/mcs/; revision=84058
2007-08-14 12:09:45 +00:00
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
Igor Zelmanovich 450ce08119 2007-05-03 Igor Zelmanovich <[email protected]>
* BrowserCapabilities.cs:
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AggregateCacheDependency.cs:
	* CacheDependency.cs:	
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AttributeCollection.cs:
	* DataBindingHandlerAttribute.cs:
	* HtmlTextWriter.cs:
	* PartialCachingControl.cs:
	* TemplateControl.cs:
	* TemplateControl.jvm.cs:
	* XPathBinder.cs:						
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* ControlPropertyNameConverter.css:
	* FontUnitConverter.cs:
	* UnitConverter.cs:
	* ValidatedControlConverter.cs:			
	added missing API.	


svn path=/trunk/mcs/; revision=76622
2007-05-03 14:29:09 +00:00
Marek Habersack 6b2025f651 2007-04-10 Marek Habersack <[email protected]>
* CacheDependency.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

2007-04-10  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

	* HttpApplicationFactory.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.
	App_Code, App_Browsers and App_GlobalResources watchers must watch
	for events with the '*' mask so that they can notice events
	related to subdirectory creation/deletion.
	Watch for subdirectory events with the App_Code watcher.

2007-04-10  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: add NotifyFilter.Size to the
	watcher notification filter to enable file modification events
	with Linux inotify.

svn path=/trunk/mcs/; revision=75568
2007-04-10 10:42:02 +00:00
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
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
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
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
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
Patrik Torstensson 73613bd9ea Sorry Sorry Sorry
svn path=/trunk/mcs/; revision=28265
2004-05-27 13:41:52 +00:00