Tom Lancaster wrote:
> 
> Is it possible to use the Cache features in Apache::ASP without using
> the provided Session State mechanism ?
> 

It should be possible.

> I ask because I'm moving off NFS to postgres sessions using Apache::Session,
> but I'd like to keep the Cache feature.
> 

The nicest integration is to create the Apache::Session as $Session in 
Script_OnStart, then its pretty smooth, though you might need to 
create API calls that you use for the %session which you can do if you
bless it into some class.  Make sure to do a register_cleanup of the 
$Session with an explicit destroy too after you create it.

> If I don't set StateDir, the machine wants to set up the Session structure
> anyway, in GLOBAL/.state, and ignores the CacheDir setting.
> 

In the code for 2.31, just released, there is this line:

    $self->{state_dir}   = $r->dir_config('StateDir') || $r->dir_config('CacheDir') || 
$self->{global}.'/.state';

this CacheDir setting, coupled with a NoState setting, should be all you need.
This code was the same in 2.29 I believe.  Try setting StateDir if CacheDir
does not work for you.

If you continue to have problems, set the Debug to -2, and send a bit
of error log for a full request so we can see what the config info looks like.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to