2 ms·
OK, I'll bite: how would you store the array of words in memory across requests in PHP? As far as I'm aware, the runtime deliberately doesn't provide a way to d
by teraflop 14y ago
OK, I'll bite: how would you store the array of words in memory across requests in PHP? As far as I'm aware, the runtime deliberately doesn't provide a way to do that.
The closest you could get is to store it in $_SESSION, but that's per-user rather than global, and it still has to read the data from your session handler. Which by default just uses flat files, so we're no better off than we started.
- deleted 14y ago[deleted]
- spoiler 14y ago... And that is something exclusive to PHP?
- jamesmoss 14y agoThe APC opcode cache extension also has a user cache which has an API similar to memcache but a bit faster since it's using shared memory and not going over the network. It's shared between all visitors across all requests. http://php.net/manual/en/book.apc.php http://php.net/manual/en/book.apc.php
- francispelland 14y agoAPC. It comes as part of the official package as of 5.2.