* 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
* 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
* 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
* 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
* OutputCacheModule.cs: Consistently use InternalCache for
CachedRawResponse items and Cache for CachedVaryBy items.
Partial fix for bug #429926.
svn path=/trunk/mcs/; revision=114189
Pass onRemoveCallback along in Insert. Fixes bugs #324528 and
#382644. Patch provided by Juraj Skripsky <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=110125
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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