apache module: how to use shared memory between calls?
I'm hacking php (the interpreter) to load php files from memory. I noticed that I'm doing the "loading stuff into memory" for every request I make and I'd like to do it only once while apache is running (the first time a request arrives and then I could reuse this stuff for later calls).
I tried setting the stuff I need as "static" in the c code but it's still not shared between calls. What's the right way to do it?
Thanks in advance.