My problem is 2 fold.
First, I have a strong problem with authDBI and his cache:
If I change a user's information in my database , the cache is not rinsed.
"Well actually, it's normal" I thought. "let's wait for the cleanup delay of the cache, and it'll be ok."
I wait, and no change. What the heck: the cache is not cleaned?
After a lot of searching, we finally understood that the cache was cleaned if you waited the full cache cleanup delay AND if somebody elses logs in. Is this normal ?
For me it's a real pain and I'd really like the cache to be cleaned every 5 minutes, whatever the actions of the users.
Now for the second part of my question:
I went into AuthDBI source code, and this part seems strange to me :
sub setCleanupTime {
my $class = shift;
my $cleanup_time = shift;
# sanity check
$CleanupTime = $cleanup_time if ($cleanup_time =~ /\-*\d+/);
}
Oh geez, nevermind I realize that my question is stupid while asking it :-(.
Does anybody has some feedback on my first point?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.