Commit Graph
62 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
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
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 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
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 8f2d626453 * CacheDependency.cs: Copy all the entries into the entries array,
set on removed callback for items that we are dependent on.

svn path=/trunk/mcs/; revision=21691
2004-01-05 01:34:03 +00:00
Jackson Harper c8574de2f2 * OutputCacheModule.cs: VaryBy keys now need the HttpContext not just the request.
* CachedVaryBy.cs: Handle vary by headers, and vary by custom.

svn path=/trunk/mcs/; revision=21686
2004-01-04 21:51:45 +00:00