Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2009, 01:59 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 119
Thanks: 26
Thanked 0 Times in 0 Posts
Default Forums don't really work - posts don't show up

Hi:
I'm almost done with my web based on Beerhouse project and will be soon publishing so was looking at some issues other people have with actual webs.

Referring to another poster's complaint regarding his own website, I went to:
http://www3.gamhan.com/BeerHouse/Default.aspx

where they have put the Beerhouse online.

I tried posting in the forums. As this other poster had complained of with his site, the post does not show up. The title to the posts shows, but not the text of the posts. You can see where I "Rae88" tried posting in two different forums and tho the heading/Title appears, the post doesn't!

Has the author furnished any fix to this? I'd like to get my code corrected before I go online if possible.

Rachel
 
Old February 22nd, 2009, 06:40 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Rachel,

This issue is related to the clearing of the posts cache. Have a look at the sections where the cache is cleared (when adding/amending posts) and you'll need to add a few additional sections there. I'm not at a machine that has the code otherwise i'd post it. However, later today, I'll be at home and will be able to post the updated code for you.

I had this issue too, hence putting the fix in place. You may discover the fix yourself before i post it and if so, drop the fix up here for others to see.

cheers for now
__________________
jimi

http://www.originaltalent.com
The Following User Says Thank You to jimibt For This Useful Post:
Rachel (February 22nd, 2009)
 
Old February 22nd, 2009, 11:42 AM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 119
Thanks: 26
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jimibt View Post
Rachel,

This issue is related to the clearing of the posts cache. Have a look at the sections where the cache is cleared (when adding/amending posts) and you'll need to add a few additional sections there. I'm not at a machine that has the code otherwise i'd post it. However, later today, I'll be at home and will be able to post the updated code for you.

I had this issue too, hence putting the fix in place. You may discover the fix yourself before i post it and if so, drop the fix up here for others to see.

cheers for now
Hi Jimi:
Please do post it when you get a chance. (I'm currently working on trying to conclude some other issues with my project now so will not be discovering the fix for this anytime soon.)

I'll tell that other poster to look here later and view your post.

Thanks a lot,

Rachel
 
Old February 22nd, 2009, 05:14 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Rachel,

You need to add the following code to the InsertPost() method of BLL/Forums/post.cs in the same section as the other BizObject.PurgeCacheItems stuff.

// jbt frig to empty cache
BizObject.PurgeCacheItems("Forums_Thread");

It's not very 'clever' and to be honest, I now use a different cacheing scheme in any TBH architecture based sites that I now do. However, this is what I last did when i was using it a year or so back.

Let me know if this fixes it for you.
__________________
jimi

http://www.originaltalent.com
The Following User Says Thank You to jimibt For This Useful Post:
Rachel (February 22nd, 2009)
 
Old February 22nd, 2009, 08:20 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 119
Thanks: 26
Thanked 0 Times in 0 Posts
Default

Thanks a bunch Jimi:
I haven't yet deployed my site but I will make that change and hope it works when I'm actually on line.

Rachel
 
Old February 23rd, 2009, 12:30 PM
Authorized User
 
Join Date: Mar 2007
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default

Jimi -

I would be interested learning how you're implementing caching now. As my TBH site becomes more complex the 'PurgeCache' method has been a frequent source of frustration, but I haven't yet developed a better caching scheme than the one presented in TBH.

Thanks.
 
Old February 23rd, 2009, 01:19 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Scott,

Basically, I generate my DAL/BLL/ (basic CRUD UI) from a site generator that i've been developing and as a result, came up with several (imo) improvements to the caching sheme. basically, the bits that can cause issues are places where you have lists that may have foreign keys etc and something there changes, or single entities where a change occurs but supporting lists don't get cleared. The best way to see this in action may actually be to download the site generator and run it against the TBH database. You'll then get an idea of the new 'improved' caching scheme from the resulting code.

The nice thing is that the site generator is wholly based on the good principles of TBH architecture but with a few of the wrinkles ironed out. I use it on most projects these days and it has saved me both a ton of effort as well as saving in the frustration normally associated in handcoding this 'plumbing' set of layers.

Grab yourself a copy from:

Announce: Flixon Site Generator V2 now available

enjoy...
__________________
jimi

http://www.originaltalent.com

Last edited by jimibt; February 23rd, 2009 at 01:21 PM..
 
Old February 23rd, 2009, 03:04 PM
Authorized User
 
Join Date: Mar 2007
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default

Jimi -

I haven't taken the time to investigate Flixon yet, but you've given me a good reason to check it out now. I know you're a big proponent of Flixon so I'm sure it will be worth the effort. Thanks for the tip!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Forums Extensions II - New/Old Posts Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 21st, 2007 03:50 AM
How to show more recent forums topics on de master kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 December 12th, 2006 11:52 AM
Moderation of Original posts: Feedback forums jminatel Forum and Wrox.com Feedback 1 March 17th, 2004 04:36 PM
Where are the archived posts? RaminS Forum and Wrox.com Feedback 3 June 26th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.