in reply to mod_perl sql result cache
That really depends on your application/framework. mod_perl puts a persistent Perl interpreter inside each Apache process, so the values stored in global variables (or file scoped lexicals, or indeed anything that's still referenced) at the end of one request will still be there at the start of the next.
The problem with this raw mechanism is that the persistent/cached values exist separately in each Apache child process. Which means 1) you get multiple copies and 2) there's no way to invalidate a cached item across all processes.
It's usually better to use something like memcache to manage persistent cache values. It avoids the multiple copies issue and provides a central place to invalidate cached items.
So in summary, I'm afraid you'll have to dive into the code for your app to find out how it manages cached values.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mod_perl sql result cache
by jbenezech (Acolyte) on Aug 25, 2011 at 03:59 UTC | |
by jbenezech (Acolyte) on Sep 01, 2011 at 01:38 UTC |