Hi, I was just trying to get newsletters to work in 2.0 and I've run
across an issue with the caching. First off I ended up with tons of
exception stack traces in my log file if I turned on newsletters and I
never could get it to actually send a newsletter. Not that I really
know how to get one sent[1].

Anyway, I found out that the problem is that anytime anything uses the
AspNetWikiCache class on a background thread, it will toss null
pointers because HttpContext.Current is never setup for background
threads. I've made changes locally to the AspNetWikiCache to always
NOP if the HttpContext.Current is null, but I wanted to run this
behavior by you before I checked it in. I don't know what else uses
background threads and would expect this to be setup, (not too much I
guess since no one has run into this yet.)

I'm not sure if this action of basically skipping the caching step is
ok, or if we need try to work around it and still provide a caching
mechanism to background threads....

If the NOP is ok, let me know and I'll get it checked in....

-nathan




[1] The flexwiki.com NewsLetter topic is trashed. Any one got a copy
of it? Right now I don't think that there is any documentation at all
on how to get it going. I found a couple of topics that might
indirectly get me going, but it'd be nice to find out that someone had
a backup or copy of this topic floating around.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to