Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 52757 invoked from network); 19 Aug 2004 08:57:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Aug 2004 08:57:35 -0000 Received: (qmail 99637 invoked by uid 500); 19 Aug 2004 08:56:57 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 99541 invoked by uid 500); 19 Aug 2004 08:56:55 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 99524 invoked by uid 99); 19 Aug 2004 08:56:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [212.136.106.3] (HELO sr97.bibit.com) (212.136.106.3) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 19 Aug 2004 01:56:52 -0700 Received: from localhost (localhost [127.0.0.1]) by sr97.bibit.com (Postfix) with ESMTP id EBBB64458 for ; Thu, 19 Aug 2004 10:56:49 +0200 (CEST) Received: from sr97.bibit.com ([127.0.0.1]) by localhost (sr097 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28448-01 for ; Thu, 19 Aug 2004 10:56:49 +0200 (CEST) Received: from postduif.bibit.com (postduif.bibit.com [10.100.1.12]) by sr97.bibit.com (Postfix) with ESMTP id 2621843D4 for ; Thu, 19 Aug 2004 10:56:49 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by postduif.bibit.com (Postfix) with ESMTP id 0994F805B for ; Thu, 19 Aug 2004 10:56:49 +0200 (CEST) Received: from postduif.bibit.com ([127.0.0.1]) by localhost (postduif [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16537-08 for ; Thu, 19 Aug 2004 10:56:48 +0200 (CEST) Received: from [10.100.1.85] (pc085.bibit.com [10.100.1.85]) by postduif.bibit.com (Postfix) with ESMTP id 9CBDD805C for ; Thu, 19 Aug 2004 10:56:48 +0200 (CEST) Message-ID: <41246B50.1050506@bibit.com> Date: Thu, 19 Aug 2004 10:56:48 +0200 From: Michiel Toneman User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: [OFFTOPIC] Removing attribute from all HttpSessions References: <5684A7E6FB10504393A2806C1F4C021003B0E09D@orion.qas.com> In-Reply-To: <5684A7E6FB10504393A2806C1F4C021003B0E09D@orion.qas.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at bibit.com X-Virus-Scanned: by amavisd-new at bibit.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bad caching strategy. Try using a singleton cache backed by a HashMap. Have an invalidation method that takes a pagekey as argument. Create a simple get(pagekey) that checks for invalidation and refills the cache entry when necessary. No need to go iterating over sessions... Just my $0.02 :-) Michiel Allistair Crossley wrote: >Hey, > >I am putting a page caching stategy into place per user session. However, there are times when I need to refresh all the caches for all users. For example, let's say 5 users have a cached version of page 5. An external event causes page 5 to invalidate. I need an effective strategy to flush all sessions with page 5 cached. > >Thoughts appreciated, Allistair. > > > >------------------------------------------------------- >QAS Ltd. >Developers of QuickAddress Software >www.qas.com >Registered in England: No 2582055 >Registered in Australia: No 082 851 474 >------------------------------------------------------- > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik Michiel.Toneman@bibit.com Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org