ChangeLog 15 KB

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