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 April 6th, 2010, 11:43 AM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default A bug in Articles module?

DeleteArticle() method on page 238 is defined as:

Code:
      
       public static bool DeleteArticle(int id)
      {
         bool ret = SiteProvider.Articles.DeleteArticle(id);
         new RecordDeletedEvent("article", id, null).Raise();
         BizObject.PurgeCacheItems("articles_article");
         return ret;
      }
a) Won’t BizObject.PurgeCacheItems("articles_article"); remove all cached items stored by Articles module?

b) Thus wouldn’t the following definition be more appropriate:

Code:
      
       public static bool DeleteArticle(int id)
      {
         bool ret = SiteProvider.Articles.DeleteArticle(id);
         new RecordDeletedEvent("article", id, null).Raise();
         BizObject.PurgeCacheItems("articles_article_" + id.ToString());
         BizObject.PurgeCacheItems("articles_articles");
         return ret;
      }

I'd appreciate any help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Articles--BrowseArticles papalolo22 BOOK: ASP.NET 3.5 Website Programming Problem Design Solution 1 June 8th, 2010 02:08 PM
Bug in the Polls Module (and the fix for it) Lee Dumond BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 September 1st, 2009 03:34 PM
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
Recent articles not showing on articles page kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 December 16th, 2006 10:06 AM





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