in reply to modperl PerlAuthenHandler script persistence

here's an alternative strategy to consider (for the auth handler):
use Cache::FileCache; my $cache = Cache::FileCache->new; if(not $cache->get( $username )) { do_authentication(); if($authentication_succeeded) { $cache->set( $username, 1, "10 minutes" ); } }
advantages of Cache::Cache:

Replies are listed 'Best First'.
Re^2: modperl PerlAuthenHandler script persistence
by perrin (Chancellor) on Mar 30, 2006 at 17:21 UTC
    Cache::Cache is slow, and Cache::SharedMemoryCache is especially slow. I'd suggest using Cache::FastMmap instead if you're concerned about performance.
Re^2: modperl PerlAuthenHandler script persistence
by SirBones (Friar) on Mar 29, 2006 at 15:43 UTC

    That looks great. Cache::Cache seems to be what I should have been using all along, rather than my original kludge. I'll try it today; thanks so much.

    Ken

    "This bounty hunter is my kind of scum: Fearless and inventive." --J.T. Hutt