News for hackers. Stuff that matters.
Re:Taking PHP Seriously by bkanber on Thursday October 13, 2016 @07:15PM (#12704980)
Session cookies were basically invented for transient statefulness over HTTP.
Re:Taking PHP Seriously by bpicolo on Thursday October 13, 2016 @07:22PM (#12705018)
I'm not referring to per-user sorts of things. You can't cache those locally in a sane way in any language. I'm talking about what would usually be memoizable sorts of things.
Re:Taking PHP Seriously by bkanber on Thursday October 13, 2016 @07:46PM (#12705143)
There are memoization libraries for PHP but really it's just another cache implementation. Put it in RAM, put it on disk, put it in memcached or redis, I don't really see too much a difference between $cache->set($key, $value) in PHP vs cache[key] = value in node for instance.