[ic] Leaky Globals in RPC mode
Jon Jensen
jon at endpoint.com
Mon Dec 1 13:32:06 UTC 2014
On Mon, 1 Dec 2014, Peter wrote:
> Ran across an issue today with globals leaking from one page load to the
> next in RPC mode,
[snip]
> The issue is that in RPC mode $missing_called gets leaked
[snip]
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.
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.
See Vend::Server::start_page() and server_page() for how this gets cleaned
out between each page request.
Jon
--
Jon Jensen
End Point Corporation
https://www.endpoint.com/
More information about the interchange-users
mailing list