Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: problems with class::dbi::sweet

by rhesa (Vicar)
on Sep 09, 2008 at 10:47 UTC ( #710026=note: print w/replies, xml ) Need Help??

in reply to problems with class::dbi::sweet

Hi xido,

I also use Class::DBI::Sweet, CGI::Session, and a cache (Cache::Memcached in my case). I can assure you that your problem isn't with those modules. The most likely culprit is your session driver, which looks "non-standard".

I have two suggestions for you:

  1. try using CGI::Session with the default CGI::Session::Driver::DBI. Pass in MultiDesk::DB->get_handle as the handle
  2. or try turning off the cache on the class you use in the session driver, with $class->cache(undef). (you didn't show us which class that is, but it's accessed with $class->{ddb} in your get_session_from_user function)

If that doesn't help, try obtaining a full stack trace for that error, and see if that narrows it down. It'd be useful to know where the error gets triggered, and the parameters and objects involved.

Caching sessions isn't useful, in my experience, because it gets flushed to the database on every request anyway. So you don't really reduce load on the database.

Replies are listed 'Best First'.
Re^2: problems with class::dbi::sweet
by xido (Initiate) on Sep 11, 2008 at 19:11 UTC
    I find the bug!! C:D:S don't have an constructror! But I blessed value than was "returned" by them with MultiDesk::DB. Destructor called twice, the second call was on non existent object.. But link with amount of get or post variables - mystery for me..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://710026]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-09-27 01:56 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (142 votes). Check out past polls.