in reply to How to keep an object between HTTP requests?
In general that's not possible. If you tell us more about your environment, we might be able to tell you how to cache the object. For example persistent environments like mod_perl, FCGI or HTTP::Server::Simple allow you to keep objects around.
The most portable solution is to store (and restore) the object using Storable, but not all data types can be serialized that way.
Another way would be to only load/initialize the parts of your object that you really need, instead of initializing everything just to display the log in screen. But you haven't told us about the nature of your object, so it's hard to advise on that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to keep an object between HTTP requests?
by kornerr (Novice) on Feb 15, 2010 at 09:01 UTC | |
by Corion (Patriarch) on Feb 15, 2010 at 09:14 UTC | |
by kornerr (Novice) on Feb 15, 2010 at 09:59 UTC | |
by Herkum (Parson) on Feb 15, 2010 at 18:12 UTC | |
by Corion (Patriarch) on Feb 15, 2010 at 10:02 UTC | |
by kornerr (Novice) on Feb 15, 2010 at 10:06 UTC | |
| |
by bart (Canon) on Feb 16, 2010 at 15:39 UTC |