ChangeLog 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. 2009-10-20 Marek Habersack <[email protected]>
  2. * OutputCacheModule.cs: keysCache and entriesToInvalidate
  3. dictionaries are allocated only when they are
  4. required. BuildManager's RemoveEntry envent is subscribed to only
  5. if cache actually has some entries.
  6. Added support for post-cache substitution.
  7. * CachedRawResponse.cs: data is stored in a list of DataItem
  8. instances instead of just in a single buffer. This enables support
  9. for post-cache substitution.
  10. 2009-10-05 Marek Habersack <[email protected]>
  11. * Cache.cs: if item expiration time exceeds the maximum value
  12. Timer accepts, use the latter - item will expire properly anyway,
  13. as the timer will be rescheduled for the item's expiration time
  14. once that item is bubbled to the top of the priority queue. Fixes
  15. bug #544171
  16. 2009-09-26 Marek Habersack <[email protected]>
  17. * CacheItemPriorityQueue.cs, CacheItem.cs, CacheItemEnumerator.cs:
  18. added
  19. * Cache.cs: factored out CacheItem and CacheItemEnumerator to
  20. separate files.
  21. Use reader-writer locks instead of Monitor.
  22. Added two 3.5sp1 properties - EffectivePrivateBytesLimit and
  23. EffectivePercentagePhysicalMemoryLimit.
  24. Added support for disabling cache item expiration.
  25. One timer is used to expire all timed items (instead of one timer
  26. per item). Timed items are kept in a priority queue.
  27. 2009-03-03 Marek Habersack <[email protected]>
  28. * CachedRawResponse.cs: headers are stored in NameValueCollection
  29. now.
  30. 2009-01-09 Marek Habersack <[email protected]>
  31. * Cache.cs: System.Threading.Timer.Change takes a long, not an
  32. int. The maximum value of sliding expiration is 365 days
  33. (31536000000ms) which fits within the value range of long. The
  34. previous cast to int might yield negative values in certain
  35. situations which was the reason for bug #464221. Fixes bug #464221
  36. 2008-10-21 Marek Habersack <[email protected]>
  37. * OutputCacheModule.cs: seal the class.
  38. Made OnRawResponseRemoved a static method.
  39. * CachedVaryBy.cs: seal the class.
  40. Use portable line terminators instead of literal '\n'.
  41. * Cache.cs: seal the CacheItem and CacheItemEnumerator classes.
  42. * CacheDependency.cs: dispose the associated dependency in the
  43. DependencyDispose method.
  44. * CachedRawResponse.cs: seal the class
  45. 2008-10-15 Marek Habersack <[email protected]>
  46. * OutputCacheModule.cs: do not take any action if Response returns
  47. null from GetCachedResponse.
  48. 2008-09-30 Juraj Skripsky <[email protected]>
  49. * CachedRawResponse.cs: Don't allocate a 32k buffer that is never
  50. used. Fixes enhancement bug #430963.
  51. 2008-09-29 Marek Habersack <[email protected]>
  52. * OutputCacheModule.cs: invalidate cache entries when the
  53. corresponding source file (.as?x) is recompiled by hooking up to
  54. System.Web.Compilation.BuildManager's build cache entry removal
  55. event. Fixes bug #429926
  56. 2008-09-26 Juraj Skripsky <[email protected]>
  57. * OutputCacheModule.cs: Consistently use InternalCache for
  58. CachedRawResponse items and Cache for CachedVaryBy items.
  59. Partial fix for bug #429926.
  60. 2008-08-11 Marek Habersack <[email protected]>
  61. * Cache.cs: dispose item timer when removing an entry. Fixes bug
  62. #416076. Patch provided by Adriaan van Kekem
  63. <[email protected]>, thanks!
  64. Pass onRemoveCallback along in Insert. Fixes bugs #324528 and
  65. #382644. Patch provided by Juraj Skripsky <[email protected]>,
  66. thanks!
  67. 2008-06-18 Marek Habersack <[email protected]>
  68. * SqlCacheDependency.cs: added
  69. 2008-05-30 Marek Habersack <[email protected]>
  70. * CacheDependency.cs: do not use synthetized event accessors (to
  71. avoid locks).
  72. 2008-05-23 Marek Habersack <[email protected]>
  73. * Cache.cs: optimize lock usage
  74. 2008-04-28 Marek Habersack <[email protected]>
  75. * Cache.cs: refactoring - move the timeout setting code to
  76. separate methods, so that it can be accessed from outside the
  77. class. Fixes bug #382644
  78. 2008-03-18 Geoff Norton <[email protected]>
  79. * Cache.cs: MS allows calling Insert in a removed handler, we need to
  80. avoid double locking here otherwise the Insert will never succeed.
  81. 2008-02-26 Kornél Pál <[email protected]>
  82. * CachedRawResponse.cs, OutputCacheModule.cs: Don't add Date header because
  83. servers usually add a Date header that would result in duplicate Date header
  84. sent to the client. Fixes bug #363404.
  85. 2007-12-31 Vladimir Krasnov <[email protected]>
  86. * Cache.cs: added DependencyCache property, a cache object for
  87. creating dependencies
  88. 2007-12-19 Juraj Skripsky <[email protected]>
  89. * Cache.cs: Replace periodic timer (60s) with per-cache-item expiration
  90. timers.
  91. 2007-08-17 Marek Habersack <[email protected]>
  92. * CacheDependency.cs: use DependencyChanged as a list of events.
  93. OnChanged now calls OnDependencyChanged, to notify
  94. AggregateCacheDependency that it has changed. Fixes bug #82419.
  95. 2007-08-14 Marek Habersack <[email protected]>
  96. * AggregateCacheDependency.cs: propagate changes in any child
  97. dependencies to the base class.
  98. 2007-06-25 Juraj Skripsky <[email protected]>
  99. * Cache.cs: Re-introduce "InvokePrivateCallbacks" accidentally
  100. removed in r80321.
  101. 2007-06-20 Marek Habersack <[email protected]>
  102. * OutputCacheModule.cs: use Context.InternalCache.
  103. * Cache.cs: 2.0 profile uses generic containers to keep the cache
  104. entries.
  105. Gotten rid of the InsertPrivate and InsertInternal methods. The
  106. latter was moved to one of the Insert overloads.
  107. Private entries are no longer handled specifically, because the
  108. internal cache is now kept in a separate object.
  109. Iterate over the entries when filling the ArrayList in the 2.0
  110. profile to avoid type cast exceptions.
  111. 2007-05-03 Igor Zelmanovich <[email protected]>
  112. * AggregateCacheDependency.cs:
  113. * CacheDependency.cs:
  114. added missing API.
  115. 2007-04-10 Marek Habersack <[email protected]>
  116. * CacheDependency.cs: add the NotifyFilters.Size to the
  117. watcher flags, so that we watch for modifications to a file when
  118. using Linux inotify.
  119. 2006-11-29 Marek Habersack <[email protected]>
  120. * CachedVaryBy.cs: Make sure that the vary:* header is generated
  121. only when allowed under the 2.0 profile.
  122. 2006-11-25 Marek Habersack <[email protected]>
  123. * AggregateCacheDependency.cs: A small code optimization.
  124. 2006-11-14 Marek Habersack <[email protected]>
  125. * Cache.cs:
  126. * CacheDependency.cs:
  127. * AggregateCacheDependency.cs: implement this one.
  128. 2006-09-11 Andrew Skiba <[email protected]>
  129. * CacheDependency.cs: ifdef TARGET_JVM
  130. 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
  131. * CacheDependency.cs:
  132. * Cache.cs: check dependencies on other cache keys. Fixes bug #79002.
  133. 2006-03-18 Robert Jordan <[email protected]>
  134. * OutputCacheModule.cs: invoke the validation callbacks of
  135. HttpCachePolicy. Fixes bug #77825.
  136. 2006-03-14 Robert Jordan <[email protected]>
  137. * CachedVaryBy.cs: Fixed VaryByParam="*". Replaced request.Param
  138. with QueryString and Form lookups. Made the param name output case
  139. insensitive. Fixes bug #77757.
  140. 2005-10-24 Gonzalo Paniagua Javier <[email protected]>
  141. * Cache.cs: new internal method.
  142. 2005-09-08 Eyal Alaluf <[email protected]>
  143. * OutputCacheModule.cs: Use C# 1.0 style of delegate instantiating.
  144. Needed to compile Grasshopper (TARGET_J2EE) which uses MS C# 1.0
  145. compiler and does not use msc.
  146. 2005-09-02 Gonzalo Paniagua Javier <[email protected]>
  147. * Cache.cs: ignore exceptions thrown by removed item callbacks.
  148. 2005-09-02 Sebastien Pouliot <[email protected]>
  149. * Cache.cs: Added security permissions with Minimal level for
  150. AspNetHostingPermissionLevel (only LinkDemand as the class is sealed).
  151. * CacheDependency.cs: : Added security permissions with Minimal level
  152. for AspNetHostingPermissionLevel (note class is sealed only in 1.x).
  153. 2005-09-01 Eyal Alaluf <[email protected]>
  154. * CacheDependency.cs: TARGET_J2EE fixes.
  155. 2005-08-20 Gonzalo Paniagua Javier <[email protected]>
  156. * CacheDependency.cs: add missing ctor.
  157. 2005-08-15 Jackson Harper <[email protected]>
  158. * CacheItemPriority.cs:
  159. * CacheItemRemovedCallback.cs:
  160. * CacheItemRemovedReason.cs: New implementations.
  161. 2005-07-30 Miguel de Icaza <[email protected]>
  162. * OutputCacheModule.cs: Make synchronous.
  163. 2005-07-15 Lluis Sanchez Gual <[email protected]>
  164. * Cache.cs: New implementation.
  165. * CacheDependency.cs: New implementation.
  166. 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
  167. * Cache.cs: added new InsertPrivate overload.
  168. 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
  169. * Cache.cs:
  170. * CacheEntry.cs: style. Removed doc. comments.
  171. 2005-06-08 Ilya Kharmatsky <ilyak-at-mainsoft.com>
  172. * CacheDependency.cs - added TARGET_JVM directives in places,
  173. where file watching is using (Mainsoft's implementation currently
  174. doesn't support the feature).
  175. 2005-05-09 Gonzalo Paniagua Javier <[email protected]>
  176. * CacheEntry.cs: credits for this patch should go to mcs. it catched
  177. that the code after 'if ((_enumFlags & Flags.Removed) != 0)' was
  178. unreachable.
  179. 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
  180. * ExpiresBuckets.cs:
  181. * Cache.cs:
  182. * CacheExpires.cs: fix NullReferenceException thrown sometimes when
  183. using sliding expiration and under high load. Patch by Eyal Alayuf from
  184. Mainsoft.
  185. 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
  186. * CacheDependency.cs: remove warnings.
  187. 2005-04-01 Gonzalo Paniagua Javier <[email protected]>
  188. * CachedVaryBy.cs: fixed VaryByParam and wildcard (*). Patch by Ilya
  189. Kharmatsky (Mainsoft) that fixes bug #73981.
  190. 2005-04-01 Lluis Sanchez Gual <[email protected]>
  191. * CachedRawResponse.cs: Fix warning.
  192. 2004-11-08 Gonzalo Paniagua Javier <[email protected]>
  193. * CacheEntry.cs: convert the external DateTime to GMT, as everything
  194. else uses that timezone. Fixes bug #69194.
  195. 2004-10-03 Ben Maurer <[email protected]>
  196. * Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
  197. use UtcNow rather than Now.
  198. 2004-05-27 Patrik Torstensson <[email protected]>
  199. * ExpiresBucket.cs (FlushExpiredItems): fix csc and a typo bug
  200. 2004-05-27 Patrik Torstensson <[email protected]>
  201. * CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
  202. Cache.cs : Fixed deadlock issues, fixed
  203. items not correctly being flushed, fixed update
  204. of item when expiration has been updated more
  205. than 1 min (placed in wrong bucket),
  206. fixed deadlock during cache callback when item
  207. is removed due to expiriation.
  208. Rewrite of locking handling in Cache class, leading
  209. to better performance and less bugs.
  210. This rewrite is due to a number of bugs found
  211. in the output caching during load (leading to memory
  212. leaks and deadlocks)
  213. 2004-05-16 Patrik Torstensson <[email protected]>
  214. * ExpiresBucket.cs: Style changes plus;
  215. (Update): Fixed possible lock bug (bug 54531)
  216. (Expand): remove lock optimization due to it can cause newly
  217. added items to be lost.
  218. (Remove): fixed possible lock bug.
  219. 2004-04-16 Gonzalo Paniagua Javier <[email protected]>
  220. * Cache.cs: fix from Jan Jaros for NullRef (bug #56996).
  221. 2004-04-07 Lluis Sanchez Gual <[email protected]>
  222. * Cache.cs, CacheEntry.cs, ExpiresBuckets.cs: The value to use to
  223. specify infinite timeout in ReaderWriterLock is -1, not 0.
  224. 2004-03-19 Gonzalo Paniagua Javier <[email protected]>
  225. * Watcher.cs: Removed file. Jackson made it obsolete and already
  226. removed it from the .sources file.
  227. 2004-02-09 Jackson Harper <[email protected]>
  228. * ExpiresBucket.cs: Remove duplicate code. Fixes bug #54031.
  229. 2004-02-09 Jackson Harper <[email protected]>
  230. * Cache.cs: Close entries that are removed.
  231. * CacheDependency.cs: Use FileSystemWatcher instead of custom
  232. Watcher for file dependencies.
  233. * OutputCacheModule.cs: Make the varyby objects dependent on the
  234. cached page.
  235. 2004-02-05 Jackson Harper <[email protected]>
  236. * CacheDependency.cs: Handle cache keys that have not been added
  237. to the cache yet.
  238. 2004-02-02 Jackson Harper <[email protected]>
  239. * OutputCacheModule.cs: We can use file dependancies now.
  240. 2004-01-14 Jackson Harper <[email protected]>
  241. * Cache.cs: Return null when items are expired but have not been
  242. removed yet.
  243. * OutputCacheModule.cs: Handle sliding expirations. Remove hacks
  244. checking if the item is expired, the cache no longer returns
  245. expired items.
  246. 2004-01-14 Jackson Harper <[email protected]>
  247. * Cache.cs: When using sliding expiration update the cache objects
  248. expires time as well as the expires entry expire time because the
  249. objects expire time is checked when objects are pulled out. This
  250. fixex bug #52778.
  251. 2004-01-11 Jackson Harper <[email protected]>
  252. * OutputCacheModule.cs: Remove varyby objects when there are no
  253. more raw responses that belong to them.
  254. * CachedRawResponse.cs: Keep a reference to the VaryBy object that
  255. this response belongs to this is so the varyby can be cleaned up.
  256. * CachedVaryBy.cs: Keep a reference to the keys that belong to the
  257. varyby and a reference to the varyby's key.
  258. 2004-01-04 Jackson Harper <[email protected]>
  259. * OutputCacheModule.cs: Dont cache items when trace is enabled.
  260. 2004-01-04 Jackson Harper <[email protected]>
  261. * OutputCacheModule.cs: Update the date header value.
  262. * CachedRawResponse.cs: Expose a ref to the date header, so it can
  263. be easily set/updated. Remove unused methods and vars.
  264. 2004-01-04 Jackson Harper <[email protected]>
  265. * CacheDependency.cs: Copy all the entries into the entries array,
  266. set on removed callback for items that we are dependent on.
  267. * Cache.cs: Add method to get CacheEntry objects.
  268. * OutputCacheModule.cs: Make raw repsonse entries dependent on
  269. their varyby param entries.
  270. 2004-01-04 Jackson Harper <[email protected]>
  271. * OutputCacheModule.cs: VaryBy keys now need the HttpContext not just the request.
  272. * CachedVaryBy.cs: Handle vary by headers, and vary by custom.
  273. 2004-01-03 Gonzalo Paniagua Javier <[email protected]>
  274. * ExpiresBuckets.cs: set _intPos when expanding the array. Fixes bug
  275. 52541. Patch by Jan Jaros ([email protected]).
  276. 2003-11-21 Jackson Harper <[email protected]>
  277. * OutputCacheModule.cs: Only cache a page if it has a 200 status
  278. code. Fix tabbing.
  279. * CachedVaryBy.cs: Give raw response keys a name, use the
  280. httpmethod in the key, and delimit items with \n so it is easier
  281. to read when debugging.
  282. 2003-11-21 Jackson Harper <[email protected]>
  283. * OutputCacheModule.cs: Store a CachedVaryBy object for each
  284. cached page. Then store a CachedRawResponse for each combination
  285. of varried parameters for a page.
  286. * CachedRawResponse.cs: Do not need to store param values anymore
  287. those are stored in the CachedVaryBy now. Get the content length
  288. so we dont send back the entire buffer.
  289. * CachedVaryBy.cs: New file - holds the varyby data for a page,
  290. and a method to generate a key based on params. Right now this
  291. only works with VaryByParams. TODO: support VaryByHeaders and
  292. VaryByCustom.
  293. 2003-11-20 Jackson Harper <[email protected]>
  294. * Cache.cs: New method so non public cache items can be added.
  295. * CachedRawResponse.cs: New file - A snapshot of a response that
  296. is stored in the cache and can be used to create a new response.
  297. * OutputCacheModule.cs: Module for inserting and retrieving
  298. responses from the cache.
  299. 2003-04-09 Gonzalo Paniagua Javier <[email protected]>
  300. * CacheDependency.cs:
  301. * CacheEntry.cs:
  302. * Watcher.cs: added a FileSystemWatcher-like class for dependency checking.
  303. 2003-03-13 Gonzalo Paniagua Javier <[email protected]>
  304. * Cache.cs:
  305. * CacheDefinitions.cs:
  306. * CacheDependency.cs:
  307. * CacheEntry.cs:
  308. * CacheExpires.cs:
  309. * ExpiresBuckets.cs: reformatted, make class status page happier. Does
  310. not work yet (wait for the next patch).
  311. 2002-12-27 Daniel Cazzulino <[email protected]>
  312. * CacheEntry.cs: several changes. New constants, use of constants
  313. defined in Cache.cs, modified locks to optimize perf. Fixed property
  314. sets which weren't using the keyword value to set the new values
  315. (don't know how this worked before!).
  316. * Cache.cs: changed singleton implementation to only create the object
  317. when actually used. Changed Insert overloads to use constants
  318. defined instead of hard values.
  319. * ExpiresBuchets: major changes. All locking now uses ReaderWriterLock
  320. class. Bucket now efectively reuses free indexes from removed items
  321. to avoid unnecessary expansions. Expansion now uses Array.CopyTo to
  322. add elements to the new list. Added private Int32Collection to
  323. handle int indexes efficiently (thanks Shawn Van Ness). See comments
  324. there.
  325. 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
  326. * Cache.cs: little fixes.
  327. 2002-07-28 Gonzalo Paniagua Javier <[email protected]>
  328. * CacheDefinitions.cs: fixed a couple of enums.
  329. * CacheDependency.cs: the class is sealed.
  330. 2002-06-11 Gonzalo Paniagua Javier <[email protected]>
  331. * CacheDependency.cs: fixed a couple of typos and don't throw
  332. NotImplementedException in constructors.
  333. 2001-12-21 Gaurav Vaish <[email protected]>
  334. * CacheDependency.cs: Some unimplemented methods to make build
  335. 2001-07-20 Patrik Torstensson ([email protected])
  336. * Cache.cs: Implemented. (90% ready)
  337. * CacheDefinitions.cs: Implemented.
  338. * CacheDependency.cs: Added. (20% ready)
  339. * CacheExpires: Implemented.
  340. * CacheEntry.cs: Implemented. (95% ready, going to be changed due to CacheDependecy support)
  341. * ExpiresBuckets.cs: Implemented.