ChangeLog 14 KB

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