[ic] Leaky Globals in RPC mode
Peter
peter at pajamian.dhs.org
Mon Dec 1 13:36:24 UTC 2014
On 12/02/2014 02:32 AM, Jon Jensen wrote:
> This is by design; it's part of how PreFork mode works. It does not
> reset all variables between each request as part of its ability to keep
> working without reloading everything each time.
That's what I suspected.
> Any variables that you want to be global, in that they're available for
> the whole page request but not between requests, should go into the
> special %$::Instance hash.
Does the new $Tmp space get reset? That would be more ideal for local
(safe) code.
> See Vend::Server::start_page() and server_page() for how this gets
> cleaned out between each page request.
Thanks,
Peter
More information about the interchange-users
mailing list